@fusion.dev/helix-headless 0.220.0 → 0.222.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/api.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/code-editor/root/code-editor-root.d.ts +20 -20
- package/dist/editor/index.d.ts +1 -0
- package/dist/editor/index.js +1 -0
- package/dist/editor/root/editor-root.d.ts +611 -0
- package/dist/editor/root/editor-root.js +860 -0
- package/dist/element-events.generated.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/examples.json +1 -1
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +1113 -8
- package/types/svelte.d.ts +1 -0
- package/types/vue.d.ts +208 -2
- package/types/words.d.ts +248 -0
package/types/svelte.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ declare module 'svelte/elements' {
|
|
|
75
75
|
'helix-headless-drawer': Helix<'helix-headless-drawer'>
|
|
76
76
|
'helix-headless-drilldown-item': Helix<'helix-headless-drilldown-item'>
|
|
77
77
|
'helix-headless-drilldown': Helix<'helix-headless-drilldown'>
|
|
78
|
+
'helix-headless-editor': Helix<'helix-headless-editor'>
|
|
78
79
|
'helix-headless-empty': Helix<'helix-headless-empty'>
|
|
79
80
|
'helix-headless-file-input': Helix<'helix-headless-file-input'>
|
|
80
81
|
'helix-headless-filter-chip': Helix<'helix-headless-filter-chip'>
|
package/types/vue.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ import type {
|
|
|
95
95
|
HelixHeadlessDrawer,
|
|
96
96
|
HelixHeadlessDrilldown,
|
|
97
97
|
HelixHeadlessDrilldownItem,
|
|
98
|
+
HelixHeadlessEditor,
|
|
98
99
|
HelixHeadlessEmpty,
|
|
99
100
|
HelixHeadlessFileInput,
|
|
100
101
|
HelixHeadlessFilterChip,
|
|
@@ -2866,6 +2867,18 @@ milliseconds. The attribute also takes a CSS time, such as `3s`. */
|
|
|
2866
2867
|
It follows typing, so reading it gives the draft. Set it to seed a draft or
|
|
2867
2868
|
to replace the one in the field, and set it to `''` to clear it. */
|
|
2868
2869
|
value?: (HelixHeadlessChatComposer["value"]) | undefined;
|
|
2870
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
2871
|
+
"dictation-denied-label"?: (HelixHeadlessChatComposer["dictationDeniedLabel"]) | undefined;
|
|
2872
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
2873
|
+
dictationDeniedLabel?: (HelixHeadlessChatComposer["dictationDeniedLabel"]) | undefined;
|
|
2874
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
2875
|
+
"dictation-failed-label"?: (HelixHeadlessChatComposer["dictationFailedLabel"]) | undefined;
|
|
2876
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
2877
|
+
dictationFailedLabel?: (HelixHeadlessChatComposer["dictationFailedLabel"]) | undefined;
|
|
2878
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
2879
|
+
"dictation-unreachable-label"?: (HelixHeadlessChatComposer["dictationUnreachableLabel"]) | undefined;
|
|
2880
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
2881
|
+
dictationUnreachableLabel?: (HelixHeadlessChatComposer["dictationUnreachableLabel"]) | undefined;
|
|
2869
2882
|
/** What a screen reader hears as listening starts. */
|
|
2870
2883
|
"listening-label"?: (HelixHeadlessChatComposer["listeningLabel"]) | undefined;
|
|
2871
2884
|
/** What a screen reader hears as listening starts. */
|
|
@@ -3887,7 +3900,7 @@ Here rather than on each control. */
|
|
|
3887
3900
|
/** The problems in the text, each underlined and listed under the editor. */
|
|
3888
3901
|
diagnostics?: (HelixHeadlessCodeEditor["diagnostics"]) | undefined;
|
|
3889
3902
|
/** What draws the editor, such as `codeMirrorEngine()` from
|
|
3890
|
-
`@fusion.dev/helix-editor`. Absent, the editor is a plain text field. */
|
|
3903
|
+
`@fusion.dev/helix-code-editor`. Absent, the editor is a plain text field. */
|
|
3891
3904
|
engine?: (HelixHeadlessCodeEditor["engine"]) | undefined;
|
|
3892
3905
|
};
|
|
3893
3906
|
|
|
@@ -3926,6 +3939,18 @@ export type HelixHeadlessCodeInputVueProps = {
|
|
|
3926
3939
|
/** How long lines are drawn: `off` keeps each line its length and scrolls
|
|
3927
3940
|
sideways, as code reads, and `soft` wraps at the field's edge. */
|
|
3928
3941
|
wrap?: (HelixHeadlessCodeInput["wrap"]) | undefined;
|
|
3942
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
3943
|
+
"dictation-denied-label"?: (HelixHeadlessCodeInput["dictationDeniedLabel"]) | undefined;
|
|
3944
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
3945
|
+
dictationDeniedLabel?: (HelixHeadlessCodeInput["dictationDeniedLabel"]) | undefined;
|
|
3946
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
3947
|
+
"dictation-failed-label"?: (HelixHeadlessCodeInput["dictationFailedLabel"]) | undefined;
|
|
3948
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
3949
|
+
dictationFailedLabel?: (HelixHeadlessCodeInput["dictationFailedLabel"]) | undefined;
|
|
3950
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
3951
|
+
"dictation-unreachable-label"?: (HelixHeadlessCodeInput["dictationUnreachableLabel"]) | undefined;
|
|
3952
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
3953
|
+
dictationUnreachableLabel?: (HelixHeadlessCodeInput["dictationUnreachableLabel"]) | undefined;
|
|
3929
3954
|
/** What a screen reader hears as listening starts. */
|
|
3930
3955
|
"listening-label"?: (HelixHeadlessCodeInput["listeningLabel"]) | undefined;
|
|
3931
3956
|
/** What a screen reader hears as listening starts. */
|
|
@@ -7764,6 +7789,133 @@ export type HelixHeadlessDrilldownVueEvents = {
|
|
|
7764
7789
|
"helix-select": HelixHeadlessDrilldownHelixSelectElementEvent;
|
|
7765
7790
|
};
|
|
7766
7791
|
|
|
7792
|
+
/** `HelixHeadlessEditor` component event */
|
|
7793
|
+
export type HelixHeadlessEditorElementEvent<E = Event> = TypedEvent<
|
|
7794
|
+
HelixHeadlessEditor,
|
|
7795
|
+
E
|
|
7796
|
+
>;
|
|
7797
|
+
/** `helix-found` event type */
|
|
7798
|
+
export type HelixHeadlessEditorHelixFoundElementEvent =
|
|
7799
|
+
HelixHeadlessEditorElementEvent<HelixFoundEvent>;
|
|
7800
|
+
|
|
7801
|
+
export type HelixHeadlessEditorVueProps = {
|
|
7802
|
+
/** The block menu button's name. `{name}` is the block type at the selection. */
|
|
7803
|
+
"block-chosen-label"?: (HelixHeadlessEditor["blockChosenLabel"]) | undefined;
|
|
7804
|
+
/** The block menu button's name. `{name}` is the block type at the selection. */
|
|
7805
|
+
blockChosenLabel?: (HelixHeadlessEditor["blockChosenLabel"]) | undefined;
|
|
7806
|
+
/** The block menu's name, read by screen readers. */
|
|
7807
|
+
"block-label"?: (HelixHeadlessEditor["blockLabel"]) | undefined;
|
|
7808
|
+
/** The block menu's name, read by screen readers. */
|
|
7809
|
+
blockLabel?: (HelixHeadlessEditor["blockLabel"]) | undefined;
|
|
7810
|
+
/** The Bold button's label. */
|
|
7811
|
+
"bold-label"?: (HelixHeadlessEditor["boldLabel"]) | undefined;
|
|
7812
|
+
/** The Bold button's label. */
|
|
7813
|
+
boldLabel?: (HelixHeadlessEditor["boldLabel"]) | undefined;
|
|
7814
|
+
/** The Bulleted list button's label. */
|
|
7815
|
+
"bullet-list-label"?: (HelixHeadlessEditor["bulletListLabel"]) | undefined;
|
|
7816
|
+
/** The Bulleted list button's label. */
|
|
7817
|
+
bulletListLabel?: (HelixHeadlessEditor["bulletListLabel"]) | undefined;
|
|
7818
|
+
/** The Code block row's label in the block menu. */
|
|
7819
|
+
"code-block-label"?: (HelixHeadlessEditor["codeBlockLabel"]) | undefined;
|
|
7820
|
+
/** The Code block row's label in the block menu. */
|
|
7821
|
+
codeBlockLabel?: (HelixHeadlessEditor["codeBlockLabel"]) | undefined;
|
|
7822
|
+
/** The Code button's label. */
|
|
7823
|
+
"code-label"?: (HelixHeadlessEditor["codeLabel"]) | undefined;
|
|
7824
|
+
/** The Code button's label. */
|
|
7825
|
+
codeLabel?: (HelixHeadlessEditor["codeLabel"]) | undefined;
|
|
7826
|
+
/** The toolbar's name, read by screen readers. */
|
|
7827
|
+
"controls-label"?: (HelixHeadlessEditor["controlsLabel"]) | undefined;
|
|
7828
|
+
/** The toolbar's name, read by screen readers. */
|
|
7829
|
+
controlsLabel?: (HelixHeadlessEditor["controlsLabel"]) | undefined;
|
|
7830
|
+
/** The document's name where `label` is empty and the host has no `aria-label`. */
|
|
7831
|
+
"fallback-label"?: (HelixHeadlessEditor["fallbackLabel"]) | undefined;
|
|
7832
|
+
/** The document's name where `label` is empty and the host has no `aria-label`. */
|
|
7833
|
+
fallbackLabel?: (HelixHeadlessEditor["fallbackLabel"]) | undefined;
|
|
7834
|
+
/** The Find button's label, and the find bar's name. */
|
|
7835
|
+
"find-label"?: (HelixHeadlessEditor["findLabel"]) | undefined;
|
|
7836
|
+
/** The Find button's label, and the find bar's name. */
|
|
7837
|
+
findLabel?: (HelixHeadlessEditor["findLabel"]) | undefined;
|
|
7838
|
+
/** A heading's name in the block menu. `{level}` is its level, 1 to 3. */
|
|
7839
|
+
"heading-label"?: (HelixHeadlessEditor["headingLabel"]) | undefined;
|
|
7840
|
+
/** A heading's name in the block menu. `{level}` is its level, 1 to 3. */
|
|
7841
|
+
headingLabel?: (HelixHeadlessEditor["headingLabel"]) | undefined;
|
|
7842
|
+
/** The Italic button's label. */
|
|
7843
|
+
"italic-label"?: (HelixHeadlessEditor["italicLabel"]) | undefined;
|
|
7844
|
+
/** The Italic button's label. */
|
|
7845
|
+
italicLabel?: (HelixHeadlessEditor["italicLabel"]) | undefined;
|
|
7846
|
+
/** The document's name, read by screen readers. Name what it holds, such as
|
|
7847
|
+
"Release notes", so that several editors on one page can be told apart.
|
|
7848
|
+
Required. */
|
|
7849
|
+
label?: (HelixHeadlessEditor["label"]) | undefined;
|
|
7850
|
+
/** The Apply button's label in the address bar. */
|
|
7851
|
+
"link-apply-label"?: (HelixHeadlessEditor["linkApplyLabel"]) | undefined;
|
|
7852
|
+
/** The Apply button's label in the address bar. */
|
|
7853
|
+
linkApplyLabel?: (HelixHeadlessEditor["linkApplyLabel"]) | undefined;
|
|
7854
|
+
/** The close button's label in the address bar. */
|
|
7855
|
+
"link-close-label"?: (HelixHeadlessEditor["linkCloseLabel"]) | undefined;
|
|
7856
|
+
/** The close button's label in the address bar. */
|
|
7857
|
+
linkCloseLabel?: (HelixHeadlessEditor["linkCloseLabel"]) | undefined;
|
|
7858
|
+
/** The name of the address bar's toolbar, read by screen readers. */
|
|
7859
|
+
"link-controls-label"?: (HelixHeadlessEditor["linkControlsLabel"]) | undefined;
|
|
7860
|
+
/** The name of the address bar's toolbar, read by screen readers. */
|
|
7861
|
+
linkControlsLabel?: (HelixHeadlessEditor["linkControlsLabel"]) | undefined;
|
|
7862
|
+
/** The address field's name, which it also shows while it is empty. */
|
|
7863
|
+
"link-field-label"?: (HelixHeadlessEditor["linkFieldLabel"]) | undefined;
|
|
7864
|
+
/** The address field's name, which it also shows while it is empty. */
|
|
7865
|
+
linkFieldLabel?: (HelixHeadlessEditor["linkFieldLabel"]) | undefined;
|
|
7866
|
+
/** The Link button's label, and the address bar's name. */
|
|
7867
|
+
"link-label"?: (HelixHeadlessEditor["linkLabel"]) | undefined;
|
|
7868
|
+
/** The Link button's label, and the address bar's name. */
|
|
7869
|
+
linkLabel?: (HelixHeadlessEditor["linkLabel"]) | undefined;
|
|
7870
|
+
/** The Remove button's label in the address bar. */
|
|
7871
|
+
"link-remove-label"?: (HelixHeadlessEditor["linkRemoveLabel"]) | undefined;
|
|
7872
|
+
/** The Remove button's label in the address bar. */
|
|
7873
|
+
linkRemoveLabel?: (HelixHeadlessEditor["linkRemoveLabel"]) | undefined;
|
|
7874
|
+
/** The Numbered list button's label. */
|
|
7875
|
+
"ordered-list-label"?: (HelixHeadlessEditor["orderedListLabel"]) | undefined;
|
|
7876
|
+
/** The Numbered list button's label. */
|
|
7877
|
+
orderedListLabel?: (HelixHeadlessEditor["orderedListLabel"]) | undefined;
|
|
7878
|
+
/** The Paragraph row's label in the block menu. */
|
|
7879
|
+
"paragraph-label"?: (HelixHeadlessEditor["paragraphLabel"]) | undefined;
|
|
7880
|
+
/** The Paragraph row's label in the block menu. */
|
|
7881
|
+
paragraphLabel?: (HelixHeadlessEditor["paragraphLabel"]) | undefined;
|
|
7882
|
+
/** The words shown in an empty document, such as "Write the release notes". */
|
|
7883
|
+
placeholder?: (HelixHeadlessEditor["placeholder"]) | undefined;
|
|
7884
|
+
/** The Quote button's label. */
|
|
7885
|
+
"quote-label"?: (HelixHeadlessEditor["quoteLabel"]) | undefined;
|
|
7886
|
+
/** The Quote button's label. */
|
|
7887
|
+
quoteLabel?: (HelixHeadlessEditor["quoteLabel"]) | undefined;
|
|
7888
|
+
/** Shows the document and takes no edits, with no toolbar, for a document
|
|
7889
|
+
someone reads, or one an agent is writing. The attribute is `readonly`,
|
|
7890
|
+
the platform's spelling. */
|
|
7891
|
+
readonly?: (HelixHeadlessEditor["readOnly"]) | undefined;
|
|
7892
|
+
/** Shows the document and takes no edits, with no toolbar, for a document
|
|
7893
|
+
someone reads, or one an agent is writing. The attribute is `readonly`,
|
|
7894
|
+
the platform's spelling. */
|
|
7895
|
+
readOnly?: (HelixHeadlessEditor["readOnly"]) | undefined;
|
|
7896
|
+
/** The Redo button's label. */
|
|
7897
|
+
"redo-label"?: (HelixHeadlessEditor["redoLabel"]) | undefined;
|
|
7898
|
+
/** The Redo button's label. */
|
|
7899
|
+
redoLabel?: (HelixHeadlessEditor["redoLabel"]) | undefined;
|
|
7900
|
+
/** The Strikethrough button's label. */
|
|
7901
|
+
"strike-label"?: (HelixHeadlessEditor["strikeLabel"]) | undefined;
|
|
7902
|
+
/** The Strikethrough button's label. */
|
|
7903
|
+
strikeLabel?: (HelixHeadlessEditor["strikeLabel"]) | undefined;
|
|
7904
|
+
/** Which groups of tools the toolbar draws, as a list of `history`, `block`,
|
|
7905
|
+
`marks`, `link`, `lists`, and `quote`, or `none`. They are drawn in that
|
|
7906
|
+
order, whatever order the list is in. Absent is all six. */
|
|
7907
|
+
tools?: (HelixHeadlessEditor["tools"]) | undefined;
|
|
7908
|
+
/** The Undo button's label. */
|
|
7909
|
+
"undo-label"?: (HelixHeadlessEditor["undoLabel"]) | undefined;
|
|
7910
|
+
/** The Undo button's label. */
|
|
7911
|
+
undoLabel?: (HelixHeadlessEditor["undoLabel"]) | undefined;
|
|
7912
|
+
};
|
|
7913
|
+
|
|
7914
|
+
export type HelixHeadlessEditorVueEvents = {
|
|
7915
|
+
/** The find bar searched or moved among the matches, with `count` and the selected match's `index`, counting from 0, or -1 for none. */
|
|
7916
|
+
"helix-found": HelixHeadlessEditorHelixFoundElementEvent;
|
|
7917
|
+
};
|
|
7918
|
+
|
|
7767
7919
|
export type HelixHeadlessEmptyVueProps = {
|
|
7768
7920
|
/** The heading as words, such as "No results", drawn as a heading when
|
|
7769
7921
|
nothing is slotted into `heading`.
|
|
@@ -8274,6 +8426,18 @@ how many, written in the locale, and each language writes the forms it
|
|
|
8274
8426
|
has: `{count, plural, one {# sugestia} few {# sugestie} many {# sugestii}
|
|
8275
8427
|
other {# sugestii}}`. */
|
|
8276
8428
|
suggestionsLabel?: (HelixHeadlessFilterInput["suggestionsLabel"]) | undefined;
|
|
8429
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
8430
|
+
"dictation-denied-label"?: (HelixHeadlessFilterInput["dictationDeniedLabel"]) | undefined;
|
|
8431
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
8432
|
+
dictationDeniedLabel?: (HelixHeadlessFilterInput["dictationDeniedLabel"]) | undefined;
|
|
8433
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
8434
|
+
"dictation-failed-label"?: (HelixHeadlessFilterInput["dictationFailedLabel"]) | undefined;
|
|
8435
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
8436
|
+
dictationFailedLabel?: (HelixHeadlessFilterInput["dictationFailedLabel"]) | undefined;
|
|
8437
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
8438
|
+
"dictation-unreachable-label"?: (HelixHeadlessFilterInput["dictationUnreachableLabel"]) | undefined;
|
|
8439
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
8440
|
+
dictationUnreachableLabel?: (HelixHeadlessFilterInput["dictationUnreachableLabel"]) | undefined;
|
|
8277
8441
|
/** What a screen reader hears as listening starts. */
|
|
8278
8442
|
"listening-label"?: (HelixHeadlessFilterInput["listeningLabel"]) | undefined;
|
|
8279
8443
|
/** What a screen reader hears as listening starts. */
|
|
@@ -9941,6 +10105,18 @@ Nothing reads it from the attribute either. The real `<input>` inside takes
|
|
|
9941
10105
|
it as a property binding, which is what makes the keyboard and the
|
|
9942
10106
|
validation follow. */
|
|
9943
10107
|
type?: (HelixHeadlessInput["type"]) | undefined;
|
|
10108
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
10109
|
+
"dictation-denied-label"?: (HelixHeadlessInput["dictationDeniedLabel"]) | undefined;
|
|
10110
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
10111
|
+
dictationDeniedLabel?: (HelixHeadlessInput["dictationDeniedLabel"]) | undefined;
|
|
10112
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
10113
|
+
"dictation-failed-label"?: (HelixHeadlessInput["dictationFailedLabel"]) | undefined;
|
|
10114
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
10115
|
+
dictationFailedLabel?: (HelixHeadlessInput["dictationFailedLabel"]) | undefined;
|
|
10116
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
10117
|
+
"dictation-unreachable-label"?: (HelixHeadlessInput["dictationUnreachableLabel"]) | undefined;
|
|
10118
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
10119
|
+
dictationUnreachableLabel?: (HelixHeadlessInput["dictationUnreachableLabel"]) | undefined;
|
|
9944
10120
|
/** What a screen reader hears as listening starts. */
|
|
9945
10121
|
"listening-label"?: (HelixHeadlessInput["listeningLabel"]) | undefined;
|
|
9946
10122
|
/** What a screen reader hears as listening starts. */
|
|
@@ -11116,6 +11292,18 @@ locale. */
|
|
|
11116
11292
|
Absent, or empty, is this sentence, or the words registered for the page's
|
|
11117
11293
|
locale. */
|
|
11118
11294
|
valueMissingMessage?: (HelixHeadlessListbox["valueMissingMessage"]) | undefined;
|
|
11295
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
11296
|
+
"dictation-denied-label"?: (HelixHeadlessListbox["dictationDeniedLabel"]) | undefined;
|
|
11297
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
11298
|
+
dictationDeniedLabel?: (HelixHeadlessListbox["dictationDeniedLabel"]) | undefined;
|
|
11299
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
11300
|
+
"dictation-failed-label"?: (HelixHeadlessListbox["dictationFailedLabel"]) | undefined;
|
|
11301
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
11302
|
+
dictationFailedLabel?: (HelixHeadlessListbox["dictationFailedLabel"]) | undefined;
|
|
11303
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
11304
|
+
"dictation-unreachable-label"?: (HelixHeadlessListbox["dictationUnreachableLabel"]) | undefined;
|
|
11305
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
11306
|
+
dictationUnreachableLabel?: (HelixHeadlessListbox["dictationUnreachableLabel"]) | undefined;
|
|
11119
11307
|
/** What a screen reader hears as listening starts. */
|
|
11120
11308
|
"listening-label"?: (HelixHeadlessListbox["listeningLabel"]) | undefined;
|
|
11121
11309
|
/** What a screen reader hears as listening starts. */
|
|
@@ -19226,6 +19414,18 @@ Not a label: it goes when typing starts. */
|
|
|
19226
19414
|
/** How the browser wraps the text, and whether the breaks are submitted with
|
|
19227
19415
|
it. */
|
|
19228
19416
|
wrap?: (HelixHeadlessTextarea["wrap"]) | undefined;
|
|
19417
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
19418
|
+
"dictation-denied-label"?: (HelixHeadlessTextarea["dictationDeniedLabel"]) | undefined;
|
|
19419
|
+
/** What a screen reader hears when the browser or the reader refuses the microphone. */
|
|
19420
|
+
dictationDeniedLabel?: (HelixHeadlessTextarea["dictationDeniedLabel"]) | undefined;
|
|
19421
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
19422
|
+
"dictation-failed-label"?: (HelixHeadlessTextarea["dictationFailedLabel"]) | undefined;
|
|
19423
|
+
/** What a screen reader hears when listening ends with an error that has no label of its own. */
|
|
19424
|
+
dictationFailedLabel?: (HelixHeadlessTextarea["dictationFailedLabel"]) | undefined;
|
|
19425
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
19426
|
+
"dictation-unreachable-label"?: (HelixHeadlessTextarea["dictationUnreachableLabel"]) | undefined;
|
|
19427
|
+
/** What a screen reader hears when the recognizer cannot reach its speech service. */
|
|
19428
|
+
dictationUnreachableLabel?: (HelixHeadlessTextarea["dictationUnreachableLabel"]) | undefined;
|
|
19229
19429
|
/** What a screen reader hears as listening starts. */
|
|
19230
19430
|
"listening-label"?: (HelixHeadlessTextarea["listeningLabel"]) | undefined;
|
|
19231
19431
|
/** What a screen reader hears as listening starts. */
|
|
@@ -22766,7 +22966,7 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
22766
22966
|
HelixHeadlessCodeBlockVueProps,
|
|
22767
22967
|
HelixHeadlessCodeBlockVueEvents
|
|
22768
22968
|
>;
|
|
22769
|
-
/** A pane for working on a file: a header with its name, its language and the page's own actions, the code, the problems in it, and a status line that says where the caret is. On its own the code is a '<textarea>' in the code face. Connect an engine and it draws the code instead: '
|
|
22969
|
+
/** A pane for working on a file: a header with its name, its language and the page's own actions, the code, the problems in it, and a status line that says where the caret is. On its own the code is a '<textarea>' in the code face. Connect an engine and it draws the code instead: 'connectCodeEditor' from '@fusion.dev/helix-code-editor' connects CodeMirror, with highlighting in your theme's syntax colors, line numbers, folding, bracket matching and history. The value, the form, validation and the events stay the editor's, so a page reads and writes it the same either way. For a few lines in a form, such as a setting in JSON, use 'Code Input', which needs no engine. - 'language' picks the highlighting, such as 'ts', 'css', 'html', 'md', 'json', 'python', 'rust' or 'sh', and the header names it. - 'diagnostics' marks problems, from a linter or a language server: each is underlined in the text, its line number is drawn in its tone, and it is listed under the code, where pressing it moves the caret to it. - The find bar finds, with the case, whole words or a regular expression, and replaces once its first button shows the replace field, in the engine or in the plain field alike. - Every change goes through 'requestValue', so a listener refusing 'helix-before-change' refuses the keystroke, in the engine too. **Keyboard.** Command+F, or Control+F elsewhere, opens the find bar, Enter and Shift+Enter move between matches, and Escape closes it. In an engine, Tab indents and Escape then Tab leaves the editor, so the editor is never a trap for a reader without a pointer. */
|
|
22770
22970
|
"helix-headless-code-editor": DefineCustomElement<
|
|
22771
22971
|
HelixHeadlessCodeEditor,
|
|
22772
22972
|
HelixHeadlessCodeEditorVueProps,
|
|
@@ -22886,6 +23086,12 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
22886
23086
|
HelixHeadlessDrilldownVueProps,
|
|
22887
23087
|
HelixHeadlessDrilldownVueEvents
|
|
22888
23088
|
>;
|
|
23089
|
+
/** Wraps a document drawn by ProseMirror or another rich text editor. The frame adds a toolbar, an address bar for links, and a box the document is drawn in. 'connectEditor' from '@fusion.dev/helix-editor' connects ProseMirror: it gives the document Helix's typed blocks, each with a stable id, and draws them in your theme. The document is the element you write inside the frame, so it stays in the page: the browser's input methods, spellcheck, and right-to-left text work in it as they do in any field. A server can send the document's HTML there, and it reads before any script loads. Mark it 'data-prose', so the base layer draws its headings, lists, and quotes before a renderer connects. The toolbar's groups are named by 'tools', in this order: 'history' (Undo and Redo), 'block' (a menu of Paragraph, three headings, and Code block), 'marks' (Bold, Italic, Strikethrough, and Code), 'link', 'lists' (Bulleted and Numbered), and 'quote', which are drawn by default, and 'find', the Find button, which is drawn where 'tools' names it. A tool the renderer cannot run is left out once it is connected, and a tool that cannot apply at the selection is disabled. A tool returns focus to the document once it has run. With 'readonly', the document cannot be edited and the toolbar is not drawn. Command+F opens a find bar under the toolbar, a Find that searches the document through the renderer, marks every match, and selects one. It replaces unless the document is 'readonly', which it searches too. **Keyboard.** In the document: - Command+B, Command+I, Command+Shift+X, and Command+E make text bold, italic, struck through, and code. Use Control in place of Command on Windows and Linux. - Command+Alt+0 makes a paragraph, Command+Alt+1 to 3 a heading, and Command+Alt+8 a code block. - Command+Shift+8, Command+Shift+7, and Command+Shift+9 make a bulleted list, a numbered list, and a quote. - Command+K opens the address bar for a link. Enter applies the address, and Escape closes the bar. - Command+Z undoes, and Command+Shift+Z redoes. - In a list, Tab nests the item and Shift+Tab lifts it. Escape then Tab leaves the document from anywhere, so a list never keeps focus. - Alt+F10 moves focus to the toolbar. The arrow keys move between its tools, and Escape returns to the document. - Command+F opens the find bar. Enter and Shift+Enter move between the matches, and Escape closes the bar and returns to the document. */
|
|
23090
|
+
"helix-headless-editor": DefineCustomElement<
|
|
23091
|
+
HelixHeadlessEditor,
|
|
23092
|
+
HelixHeadlessEditorVueProps,
|
|
23093
|
+
HelixHeadlessEditorVueEvents
|
|
23094
|
+
>;
|
|
22889
23095
|
/** Shows what would be in a region and the one action that would fill it, so an empty region does not look like one that failed to load. The message is announced, because an empty view often replaces content that was loading, and the announcement tells a screen reader user that the search returned nothing. It is announced from a status region of its own, which is rendered empty and filled a frame after the view appears. Screen readers read a region that arrives with its text already in it inconsistently. For the seven seconds the region holds its copy, the heading and the message are hidden from screen readers, so the words are in the page once. Every region is a bare slot. There is no 'empty-state-heading' or 'empty-state-actions' element: assign your own heading and actions to the slots. The icon, the message and the actions slots are parts of the same names, as Card's regions are. A slot draws no box, so a part passes inherited properties, such as color and font, to what is slotted, and a page wanting a box there gives it one with 'display', such as a row of actions with 'display: flex'. **The view says which regions it holds**, as ':state(has-icon)' and ':state(has-actions)', so a sheet can space a view with no icon or no actions differently. Read in the browser, so a served view carries neither until the script runs. **Or give the heading as words.** 'heading' draws them in a 'heading' part that is a heading at 'heading-level', 3 where it is not set, so a page rendering from data or on a server gets a heading a reader finds in the outline without writing the element. A heading slotted in replaces it. **Whatever is slotted into 'heading' is read as a heading.** An element that is no heading, such as a '<span>' or a '<p>', is set inside the 'heading' part at 'heading-level', so a screen reader still finds it in the outline. A heading element, or an element holding one, keeps its own level. A server cannot see the slotted element, so a served '<span>' becomes a heading once the script runs. */
|
|
22890
23096
|
"helix-headless-empty": DefineCustomElement<
|
|
22891
23097
|
HelixHeadlessEmpty,
|
package/types/words.d.ts
CHANGED
|
@@ -612,6 +612,24 @@ declare module '@fusion.dev/helix-core' {
|
|
|
612
612
|
typingLabel: Message
|
|
613
613
|
}
|
|
614
614
|
'helix-chat-composer': {
|
|
615
|
+
/**
|
|
616
|
+
* What a screen reader hears when the browser or the reader refuses the microphone.
|
|
617
|
+
*
|
|
618
|
+
* English: `Dictation needs the microphone`
|
|
619
|
+
*/
|
|
620
|
+
dictationDeniedLabel: Message
|
|
621
|
+
/**
|
|
622
|
+
* What a screen reader hears when listening ends with an error that has no label of its own.
|
|
623
|
+
*
|
|
624
|
+
* English: `Dictation stopped with an error`
|
|
625
|
+
*/
|
|
626
|
+
dictationFailedLabel: Message
|
|
627
|
+
/**
|
|
628
|
+
* What a screen reader hears when the recognizer cannot reach its speech service.
|
|
629
|
+
*
|
|
630
|
+
* English: `Dictation could not reach the speech service`
|
|
631
|
+
*/
|
|
632
|
+
dictationUnreachableLabel: Message
|
|
615
633
|
/**
|
|
616
634
|
* The field's name, read by screen readers.
|
|
617
635
|
*
|
|
@@ -898,6 +916,24 @@ declare module '@fusion.dev/helix-core' {
|
|
|
898
916
|
* English: `Clear`
|
|
899
917
|
*/
|
|
900
918
|
clearLabel: Message
|
|
919
|
+
/**
|
|
920
|
+
* What a screen reader hears when the browser or the reader refuses the microphone.
|
|
921
|
+
*
|
|
922
|
+
* English: `Dictation needs the microphone`
|
|
923
|
+
*/
|
|
924
|
+
dictationDeniedLabel: Message
|
|
925
|
+
/**
|
|
926
|
+
* What a screen reader hears when listening ends with an error that has no label of its own.
|
|
927
|
+
*
|
|
928
|
+
* English: `Dictation stopped with an error`
|
|
929
|
+
*/
|
|
930
|
+
dictationFailedLabel: Message
|
|
931
|
+
/**
|
|
932
|
+
* What a screen reader hears when the recognizer cannot reach its speech service.
|
|
933
|
+
*
|
|
934
|
+
* English: `Dictation could not reach the speech service`
|
|
935
|
+
*/
|
|
936
|
+
dictationUnreachableLabel: Message
|
|
901
937
|
/**
|
|
902
938
|
* What a screen reader hears as listening starts.
|
|
903
939
|
*
|
|
@@ -1889,6 +1925,146 @@ declare module '@fusion.dev/helix-core' {
|
|
|
1889
1925
|
*/
|
|
1890
1926
|
loadingText: Message
|
|
1891
1927
|
}
|
|
1928
|
+
'helix-editor': {
|
|
1929
|
+
/**
|
|
1930
|
+
* The block menu button's name. `{name}` is the block type at the selection.
|
|
1931
|
+
*
|
|
1932
|
+
* English: `Text style: {name}`
|
|
1933
|
+
*/
|
|
1934
|
+
blockChosenLabel: Message
|
|
1935
|
+
/**
|
|
1936
|
+
* The block menu's name, read by screen readers.
|
|
1937
|
+
*
|
|
1938
|
+
* English: `Text style`
|
|
1939
|
+
*/
|
|
1940
|
+
blockLabel: Message
|
|
1941
|
+
/**
|
|
1942
|
+
* The Bold button's label.
|
|
1943
|
+
*
|
|
1944
|
+
* English: `Bold`
|
|
1945
|
+
*/
|
|
1946
|
+
boldLabel: Message
|
|
1947
|
+
/**
|
|
1948
|
+
* The Bulleted list button's label.
|
|
1949
|
+
*
|
|
1950
|
+
* English: `Bulleted list`
|
|
1951
|
+
*/
|
|
1952
|
+
bulletListLabel: Message
|
|
1953
|
+
/**
|
|
1954
|
+
* The Code block row's label in the block menu.
|
|
1955
|
+
*
|
|
1956
|
+
* English: `Code block`
|
|
1957
|
+
*/
|
|
1958
|
+
codeBlockLabel: Message
|
|
1959
|
+
/**
|
|
1960
|
+
* The Code button's label.
|
|
1961
|
+
*
|
|
1962
|
+
* English: `Code`
|
|
1963
|
+
*/
|
|
1964
|
+
codeLabel: Message
|
|
1965
|
+
/**
|
|
1966
|
+
* The toolbar's name, read by screen readers.
|
|
1967
|
+
*
|
|
1968
|
+
* English: `Formatting`
|
|
1969
|
+
*/
|
|
1970
|
+
controlsLabel: Message
|
|
1971
|
+
/**
|
|
1972
|
+
* The document's name where `label` is empty and the host has no `aria-label`.
|
|
1973
|
+
*
|
|
1974
|
+
* English: `Editor`
|
|
1975
|
+
*/
|
|
1976
|
+
fallbackLabel: Message
|
|
1977
|
+
/**
|
|
1978
|
+
* The Find button's label, and the find bar's name.
|
|
1979
|
+
*
|
|
1980
|
+
* English: `Find`
|
|
1981
|
+
*/
|
|
1982
|
+
findLabel: Message
|
|
1983
|
+
/**
|
|
1984
|
+
* A heading's name in the block menu. `{level}` is its level, 1 to 3.
|
|
1985
|
+
*
|
|
1986
|
+
* English: `Heading {level}`
|
|
1987
|
+
*/
|
|
1988
|
+
headingLabel: Message
|
|
1989
|
+
/**
|
|
1990
|
+
* The Italic button's label.
|
|
1991
|
+
*
|
|
1992
|
+
* English: `Italic`
|
|
1993
|
+
*/
|
|
1994
|
+
italicLabel: Message
|
|
1995
|
+
/**
|
|
1996
|
+
* The Apply button's label in the address bar.
|
|
1997
|
+
*
|
|
1998
|
+
* English: `Apply link`
|
|
1999
|
+
*/
|
|
2000
|
+
linkApplyLabel: Message
|
|
2001
|
+
/**
|
|
2002
|
+
* The close button's label in the address bar.
|
|
2003
|
+
*
|
|
2004
|
+
* English: `Close`
|
|
2005
|
+
*/
|
|
2006
|
+
linkCloseLabel: Message
|
|
2007
|
+
/**
|
|
2008
|
+
* The name of the address bar's toolbar, read by screen readers.
|
|
2009
|
+
*
|
|
2010
|
+
* English: `Link controls`
|
|
2011
|
+
*/
|
|
2012
|
+
linkControlsLabel: Message
|
|
2013
|
+
/**
|
|
2014
|
+
* The address field's name, which it also shows while it is empty.
|
|
2015
|
+
*
|
|
2016
|
+
* English: `Address`
|
|
2017
|
+
*/
|
|
2018
|
+
linkFieldLabel: Message
|
|
2019
|
+
/**
|
|
2020
|
+
* The Link button's label, and the address bar's name.
|
|
2021
|
+
*
|
|
2022
|
+
* English: `Link`
|
|
2023
|
+
*/
|
|
2024
|
+
linkLabel: Message
|
|
2025
|
+
/**
|
|
2026
|
+
* The Remove button's label in the address bar.
|
|
2027
|
+
*
|
|
2028
|
+
* English: `Remove link`
|
|
2029
|
+
*/
|
|
2030
|
+
linkRemoveLabel: Message
|
|
2031
|
+
/**
|
|
2032
|
+
* The Numbered list button's label.
|
|
2033
|
+
*
|
|
2034
|
+
* English: `Numbered list`
|
|
2035
|
+
*/
|
|
2036
|
+
orderedListLabel: Message
|
|
2037
|
+
/**
|
|
2038
|
+
* The Paragraph row's label in the block menu.
|
|
2039
|
+
*
|
|
2040
|
+
* English: `Paragraph`
|
|
2041
|
+
*/
|
|
2042
|
+
paragraphLabel: Message
|
|
2043
|
+
/**
|
|
2044
|
+
* The Quote button's label.
|
|
2045
|
+
*
|
|
2046
|
+
* English: `Quote`
|
|
2047
|
+
*/
|
|
2048
|
+
quoteLabel: Message
|
|
2049
|
+
/**
|
|
2050
|
+
* The Redo button's label.
|
|
2051
|
+
*
|
|
2052
|
+
* English: `Redo`
|
|
2053
|
+
*/
|
|
2054
|
+
redoLabel: Message
|
|
2055
|
+
/**
|
|
2056
|
+
* The Strikethrough button's label.
|
|
2057
|
+
*
|
|
2058
|
+
* English: `Strikethrough`
|
|
2059
|
+
*/
|
|
2060
|
+
strikeLabel: Message
|
|
2061
|
+
/**
|
|
2062
|
+
* The Undo button's label.
|
|
2063
|
+
*
|
|
2064
|
+
* English: `Undo`
|
|
2065
|
+
*/
|
|
2066
|
+
undoLabel: Message
|
|
2067
|
+
}
|
|
1892
2068
|
'helix-file-input': {
|
|
1893
2069
|
/**
|
|
1894
2070
|
* What a reader hears when a drop or a paste adds files, with `{names}` and
|
|
@@ -1961,6 +2137,24 @@ declare module '@fusion.dev/helix-core' {
|
|
|
1961
2137
|
* English: `Show fewer`
|
|
1962
2138
|
*/
|
|
1963
2139
|
collapseLabel: Message
|
|
2140
|
+
/**
|
|
2141
|
+
* What a screen reader hears when the browser or the reader refuses the microphone.
|
|
2142
|
+
*
|
|
2143
|
+
* English: `Dictation needs the microphone`
|
|
2144
|
+
*/
|
|
2145
|
+
dictationDeniedLabel: Message
|
|
2146
|
+
/**
|
|
2147
|
+
* What a screen reader hears when listening ends with an error that has no label of its own.
|
|
2148
|
+
*
|
|
2149
|
+
* English: `Dictation stopped with an error`
|
|
2150
|
+
*/
|
|
2151
|
+
dictationFailedLabel: Message
|
|
2152
|
+
/**
|
|
2153
|
+
* What a screen reader hears when the recognizer cannot reach its speech service.
|
|
2154
|
+
*
|
|
2155
|
+
* English: `Dictation could not reach the speech service`
|
|
2156
|
+
*/
|
|
2157
|
+
dictationUnreachableLabel: Message
|
|
1964
2158
|
/**
|
|
1965
2159
|
* The count button's label, read by screen readers. Its visible text, such
|
|
1966
2160
|
* as `+3`, does not say what it does.
|
|
@@ -2457,6 +2651,24 @@ declare module '@fusion.dev/helix-core' {
|
|
|
2457
2651
|
* English: `Clear`
|
|
2458
2652
|
*/
|
|
2459
2653
|
clearLabel: Message
|
|
2654
|
+
/**
|
|
2655
|
+
* What a screen reader hears when the browser or the reader refuses the microphone.
|
|
2656
|
+
*
|
|
2657
|
+
* English: `Dictation needs the microphone`
|
|
2658
|
+
*/
|
|
2659
|
+
dictationDeniedLabel: Message
|
|
2660
|
+
/**
|
|
2661
|
+
* What a screen reader hears when listening ends with an error that has no label of its own.
|
|
2662
|
+
*
|
|
2663
|
+
* English: `Dictation stopped with an error`
|
|
2664
|
+
*/
|
|
2665
|
+
dictationFailedLabel: Message
|
|
2666
|
+
/**
|
|
2667
|
+
* What a screen reader hears when the recognizer cannot reach its speech service.
|
|
2668
|
+
*
|
|
2669
|
+
* English: `Dictation could not reach the speech service`
|
|
2670
|
+
*/
|
|
2671
|
+
dictationUnreachableLabel: Message
|
|
2460
2672
|
/**
|
|
2461
2673
|
* What a screen reader hears as listening starts.
|
|
2462
2674
|
*
|
|
@@ -2662,6 +2874,24 @@ declare module '@fusion.dev/helix-core' {
|
|
|
2662
2874
|
pickedUpLabel: Message
|
|
2663
2875
|
}
|
|
2664
2876
|
'helix-listbox': {
|
|
2877
|
+
/**
|
|
2878
|
+
* What a screen reader hears when the browser or the reader refuses the microphone.
|
|
2879
|
+
*
|
|
2880
|
+
* English: `Dictation needs the microphone`
|
|
2881
|
+
*/
|
|
2882
|
+
dictationDeniedLabel: Message
|
|
2883
|
+
/**
|
|
2884
|
+
* What a screen reader hears when listening ends with an error that has no label of its own.
|
|
2885
|
+
*
|
|
2886
|
+
* English: `Dictation stopped with an error`
|
|
2887
|
+
*/
|
|
2888
|
+
dictationFailedLabel: Message
|
|
2889
|
+
/**
|
|
2890
|
+
* What a screen reader hears when the recognizer cannot reach its speech service.
|
|
2891
|
+
*
|
|
2892
|
+
* English: `Dictation could not reach the speech service`
|
|
2893
|
+
*/
|
|
2894
|
+
dictationUnreachableLabel: Message
|
|
2665
2895
|
/**
|
|
2666
2896
|
* The text shown when the filter hides every option.
|
|
2667
2897
|
*
|
|
@@ -4682,6 +4912,24 @@ declare module '@fusion.dev/helix-core' {
|
|
|
4682
4912
|
* English: `Clear`
|
|
4683
4913
|
*/
|
|
4684
4914
|
clearLabel: Message
|
|
4915
|
+
/**
|
|
4916
|
+
* What a screen reader hears when the browser or the reader refuses the microphone.
|
|
4917
|
+
*
|
|
4918
|
+
* English: `Dictation needs the microphone`
|
|
4919
|
+
*/
|
|
4920
|
+
dictationDeniedLabel: Message
|
|
4921
|
+
/**
|
|
4922
|
+
* What a screen reader hears when listening ends with an error that has no label of its own.
|
|
4923
|
+
*
|
|
4924
|
+
* English: `Dictation stopped with an error`
|
|
4925
|
+
*/
|
|
4926
|
+
dictationFailedLabel: Message
|
|
4927
|
+
/**
|
|
4928
|
+
* What a screen reader hears when the recognizer cannot reach its speech service.
|
|
4929
|
+
*
|
|
4930
|
+
* English: `Dictation could not reach the speech service`
|
|
4931
|
+
*/
|
|
4932
|
+
dictationUnreachableLabel: Message
|
|
4685
4933
|
/**
|
|
4686
4934
|
* What a screen reader hears as listening starts.
|
|
4687
4935
|
*
|