@algolia/autocomplete-js 1.8.3 → 1.9.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.
Files changed (54) hide show
  1. package/dist/esm/autocomplete.js +26 -52
  2. package/dist/esm/components/Highlight.js +4 -6
  3. package/dist/esm/components/ReverseHighlight.js +4 -6
  4. package/dist/esm/components/ReverseSnippet.js +4 -6
  5. package/dist/esm/components/Snippet.js +4 -6
  6. package/dist/esm/createAutocompleteDom.js +14 -17
  7. package/dist/esm/createEffectWrapper.js +0 -2
  8. package/dist/esm/createReactiveWrapper.js +0 -3
  9. package/dist/esm/elements/Input.js +11 -16
  10. package/dist/esm/getCreateDomElement.js +3 -13
  11. package/dist/esm/getDefaultOptions.d.ts +32 -31
  12. package/dist/esm/getDefaultOptions.js +24 -34
  13. package/dist/esm/getPanelPlacementStyle.js +5 -10
  14. package/dist/esm/render.js +24 -28
  15. package/dist/esm/requesters/createAlgoliaRequester.js +4 -4
  16. package/dist/esm/requesters/getAlgoliaFacets.js +5 -5
  17. package/dist/esm/requesters/getAlgoliaResults.js +1 -1
  18. package/dist/esm/types/AutocompleteApi.d.ts +1 -1
  19. package/dist/esm/types/index.d.ts +7 -12
  20. package/dist/esm/types/index.js +2 -12
  21. package/dist/esm/utils/getHTMLElement.js +0 -1
  22. package/dist/esm/utils/mergeClassNames.js +0 -2
  23. package/dist/esm/utils/mergeDeep.js +1 -11
  24. package/dist/esm/utils/pickBy.js +8 -16
  25. package/dist/esm/utils/setProperties.js +9 -12
  26. package/dist/umd/index.development.js +1518 -860
  27. package/dist/umd/index.development.js.map +1 -1
  28. package/dist/umd/index.production.js +2 -2
  29. package/dist/umd/index.production.js.map +1 -1
  30. package/package.json +6 -6
  31. package/dist/esm/types/AutocompleteClassNames.d.ts +0 -28
  32. package/dist/esm/types/AutocompleteClassNames.js +0 -1
  33. package/dist/esm/types/AutocompleteCollection.d.ts +0 -6
  34. package/dist/esm/types/AutocompleteCollection.js +0 -1
  35. package/dist/esm/types/AutocompleteComponents.d.ts +0 -23
  36. package/dist/esm/types/AutocompleteComponents.js +0 -1
  37. package/dist/esm/types/AutocompleteOptions.d.ts +0 -106
  38. package/dist/esm/types/AutocompleteOptions.js +0 -1
  39. package/dist/esm/types/AutocompletePlugin.d.ts +0 -12
  40. package/dist/esm/types/AutocompletePlugin.js +0 -1
  41. package/dist/esm/types/AutocompletePropGetters.d.ts +0 -33
  42. package/dist/esm/types/AutocompletePropGetters.js +0 -1
  43. package/dist/esm/types/AutocompleteRender.d.ts +0 -15
  44. package/dist/esm/types/AutocompleteRender.js +0 -1
  45. package/dist/esm/types/AutocompleteRenderer.d.ts +0 -33
  46. package/dist/esm/types/AutocompleteRenderer.js +0 -1
  47. package/dist/esm/types/AutocompleteSource.d.ts +0 -74
  48. package/dist/esm/types/AutocompleteSource.js +0 -1
  49. package/dist/esm/types/AutocompleteState.d.ts +0 -10
  50. package/dist/esm/types/AutocompleteState.js +0 -1
  51. package/dist/esm/types/AutocompleteTranslations.d.ts +0 -5
  52. package/dist/esm/types/AutocompleteTranslations.js +0 -1
  53. package/dist/esm/types/HighlightHitParams.d.ts +0 -18
  54. package/dist/esm/types/HighlightHitParams.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@algolia/autocomplete-js",
3
3
  "description": "Fast and fully-featured autocomplete JavaScript library.",
4
- "version": "1.8.3",
4
+ "version": "1.9.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/algolia/autocomplete",
7
7
  "repository": "algolia/autocomplete",
@@ -31,14 +31,14 @@
31
31
  "watch": "watch \"yarn on:change\" --ignoreDirectoryPattern \"/dist/\""
32
32
  },
33
33
  "dependencies": {
34
- "@algolia/autocomplete-core": "1.8.3",
35
- "@algolia/autocomplete-preset-algolia": "1.8.3",
36
- "@algolia/autocomplete-shared": "1.8.3",
34
+ "@algolia/autocomplete-core": "1.9.0",
35
+ "@algolia/autocomplete-preset-algolia": "1.9.0",
36
+ "@algolia/autocomplete-shared": "1.9.0",
37
37
  "htm": "^3.1.1",
38
- "preact": "^10.0.0"
38
+ "preact": "^10.13.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@algolia/client-search": "4.14.3"
41
+ "@algolia/client-search": "4.16.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@algolia/client-search": ">= 4.5.1 < 6",
@@ -1,28 +0,0 @@
1
- export declare type AutocompleteClassNames = {
2
- detachedCancelButton: string;
3
- detachedFormContainer: string;
4
- detachedContainer: string;
5
- detachedOverlay: string;
6
- detachedSearchButton: string;
7
- detachedSearchButtonIcon: string;
8
- detachedSearchButtonPlaceholder: string;
9
- detachedSearchButtonQuery: string;
10
- form: string;
11
- input: string;
12
- inputWrapper: string;
13
- inputWrapperPrefix: string;
14
- inputWrapperSuffix: string;
15
- item: string;
16
- label: string;
17
- list: string;
18
- loadingIndicator: string;
19
- panel: string;
20
- panelLayout: string;
21
- clearButton: string;
22
- root: string;
23
- source: string;
24
- sourceFooter: string;
25
- sourceHeader: string;
26
- sourceNoResults: string;
27
- submitButton: string;
28
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { BaseItem } from '@algolia/autocomplete-core';
2
- import { InternalAutocompleteSource } from './AutocompleteSource';
3
- export interface AutocompleteCollection<TItem extends BaseItem> {
4
- source: InternalAutocompleteSource<TItem>;
5
- items: TItem[];
6
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { HighlightHitParams } from '.';
3
- declare type AutocompleteHighlightComponent = <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>) => JSX.Element;
4
- export declare type PublicAutocompleteComponents = Record<string, (props: any) => JSX.Element>;
5
- export interface AutocompleteComponents extends PublicAutocompleteComponents {
6
- /**
7
- * Highlight matches in an Algolia hit.
8
- */
9
- Highlight: AutocompleteHighlightComponent;
10
- /**
11
- * Reverse-highlight matches in an Algolia hit.
12
- */
13
- ReverseHighlight: AutocompleteHighlightComponent;
14
- /**
15
- * Reverse-highlight and snippets matches in an Algolia hit.
16
- */
17
- ReverseSnippet: AutocompleteHighlightComponent;
18
- /**
19
- * Highlight and snippet matches in an Algolia hit.
20
- */
21
- Snippet: AutocompleteHighlightComponent;
22
- }
23
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,106 +0,0 @@
1
- import { AutocompleteScopeApi, AutocompleteOptions as AutocompleteCoreOptions, BaseItem, GetSourcesParams } from '@algolia/autocomplete-core';
2
- import { MaybePromise } from '@algolia/autocomplete-shared';
3
- import { AutocompleteClassNames } from './AutocompleteClassNames';
4
- import { PublicAutocompleteComponents } from './AutocompleteComponents';
5
- import { AutocompletePlugin } from './AutocompletePlugin';
6
- import { AutocompletePropGetters } from './AutocompletePropGetters';
7
- import { AutocompleteRender } from './AutocompleteRender';
8
- import { AutocompleteRenderer } from './AutocompleteRenderer';
9
- import { AutocompleteSource } from './AutocompleteSource';
10
- import { AutocompleteState } from './AutocompleteState';
11
- import { AutocompleteTranslations } from './AutocompleteTranslations';
12
- export interface OnStateChangeProps<TItem extends BaseItem> extends AutocompleteScopeApi<TItem> {
13
- /**
14
- * The current Autocomplete state.
15
- */
16
- state: AutocompleteState<TItem>;
17
- /**
18
- * The previous Autocomplete state.
19
- */
20
- prevState: AutocompleteState<TItem>;
21
- }
22
- export declare type GetSources<TItem extends BaseItem> = (params: GetSourcesParams<TItem>) => MaybePromise<Array<AutocompleteSource<TItem> | boolean | undefined>>;
23
- export interface AutocompleteOptions<TItem extends BaseItem> extends AutocompleteCoreOptions<TItem>, Partial<AutocompletePropGetters<TItem>> {
24
- /**
25
- * The container for the Autocomplete search box.
26
- *
27
- * You can either pass a [CSS selector](https://developer.mozilla.org/docs/Web/CSS/CSS_Selectors) or an [Element](https://developer.mozilla.org/docs/Web/API/HTMLElement). If there are several containers matching the selector, Autocomplete picks up the first one.
28
- *
29
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-container
30
- */
31
- container: string | HTMLElement;
32
- /**
33
- * The container for the Autocomplete panel.
34
- *
35
- * You can either pass a [CSS selector](https://developer.mozilla.org/docs/Web/CSS/CSS_Selectors) or an [Element](https://developer.mozilla.org/docs/Web/API/HTMLElement). If there are several containers matching the selector, Autocomplete picks up the first one.
36
- *
37
- * @default document.body
38
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-panelcontainer
39
- */
40
- panelContainer?: string | HTMLElement;
41
- /**
42
- * The Media Query to turn Autocomplete into a detached experience.
43
- *
44
- * @default "(max-width: 680px)"
45
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-detachedmediaquery
46
- * @link https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries
47
- */
48
- detachedMediaQuery?: string;
49
- getSources?: GetSources<TItem>;
50
- /**
51
- * The panel's horizontal position.
52
- *
53
- * @default "input-wrapper-width"
54
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-panelplacement
55
- */
56
- panelPlacement?: 'start' | 'end' | 'full-width' | 'input-wrapper-width';
57
- /**
58
- * Class names to inject for each created DOM element.
59
- *
60
- * This is useful to style your autocomplete with external CSS frameworks.
61
- *
62
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-classnames
63
- */
64
- classNames?: Partial<AutocompleteClassNames>;
65
- /**
66
- * The function that renders the autocomplete panel.
67
- *
68
- * This is useful to customize the rendering, for example, using multi-row or multi-column layouts.
69
- *
70
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-render
71
- */
72
- render?: AutocompleteRender<TItem>;
73
- /**
74
- * The function that renders a no results section when there are no hits.
75
- *
76
- * This is useful to let the user know that the query returned no results.
77
- *
78
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-rendernoresults
79
- */
80
- renderNoResults?: AutocompleteRender<TItem>;
81
- initialState?: Partial<AutocompleteState<TItem>>;
82
- onStateChange?(props: OnStateChangeProps<TItem>): void;
83
- /**
84
- * The virtual DOM implementation to plug to Autocomplete. It defaults to Preact.
85
- *
86
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-renderer
87
- */
88
- renderer?: AutocompleteRenderer;
89
- plugins?: Array<AutocompletePlugin<any, any>>;
90
- /**
91
- * Components to register in the Autocomplete rendering lifecycles.
92
- *
93
- * Registered components become available in [`templates`](https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/templates/), [`render`](https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-render), and in [`renderNoResults`](https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-rendernoresults).
94
- *
95
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-components
96
- */
97
- components?: PublicAutocompleteComponents;
98
- /**
99
- * A mapping of translation strings.
100
- *
101
- * Defaults to English values.
102
- *
103
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-translations
104
- */
105
- translations?: Partial<AutocompleteTranslations>;
106
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import { AutocompletePlugin as AutocompleteCorePlugin, BaseItem } from '@algolia/autocomplete-core';
2
- import { AutocompleteOptions } from './AutocompleteOptions';
3
- export declare type AutocompletePlugin<TItem extends BaseItem, TData> = Omit<AutocompleteCorePlugin<TItem, TData>, 'getSources'> & {
4
- /**
5
- * The [sources](https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/) to get the suggestions from.
6
- *
7
- * When defined, they’re merged with the sources of your Autocomplete instance.
8
- *
9
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/plugins/#param-getsources
10
- */
11
- getSources?: AutocompleteOptions<TItem>['getSources'];
12
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,33 +0,0 @@
1
- import { BaseItem, AutocompleteApi as AutocompleteCoreApi, AutocompleteScopeApi } from '@algolia/autocomplete-core';
2
- import { AutocompleteState } from './AutocompleteState';
3
- declare type PropsGetterParams<TItem extends BaseItem, TParam> = TParam & {
4
- state: AutocompleteState<TItem>;
5
- } & AutocompleteScopeApi<TItem>;
6
- export declare type AutocompletePropGetters<TItem extends BaseItem> = {
7
- getEnvironmentProps(params: PropsGetterParams<TItem, {
8
- props: ReturnType<AutocompleteCoreApi<TItem>['getEnvironmentProps']>;
9
- }>): ReturnType<AutocompleteCoreApi<TItem>['getEnvironmentProps']>;
10
- getFormProps(params: PropsGetterParams<TItem, {
11
- props: ReturnType<AutocompleteCoreApi<TItem>['getFormProps']>;
12
- }>): ReturnType<AutocompleteCoreApi<TItem>['getFormProps']>;
13
- getInputProps(params: PropsGetterParams<TItem, {
14
- props: ReturnType<AutocompleteCoreApi<TItem>['getInputProps']>;
15
- inputElement: HTMLInputElement;
16
- }>): ReturnType<AutocompleteCoreApi<TItem>['getInputProps']>;
17
- getItemProps(params: PropsGetterParams<TItem, {
18
- props: ReturnType<AutocompleteCoreApi<TItem>['getItemProps']>;
19
- }>): ReturnType<AutocompleteCoreApi<TItem>['getItemProps']>;
20
- getLabelProps(params: PropsGetterParams<TItem, {
21
- props: ReturnType<AutocompleteCoreApi<TItem>['getLabelProps']>;
22
- }>): ReturnType<AutocompleteCoreApi<TItem>['getLabelProps']>;
23
- getListProps(params: PropsGetterParams<TItem, {
24
- props: ReturnType<AutocompleteCoreApi<TItem>['getListProps']>;
25
- }>): ReturnType<AutocompleteCoreApi<TItem>['getListProps']>;
26
- getPanelProps(params: PropsGetterParams<TItem, {
27
- props: ReturnType<AutocompleteCoreApi<TItem>['getPanelProps']>;
28
- }>): ReturnType<AutocompleteCoreApi<TItem>['getPanelProps']>;
29
- getRootProps(params: PropsGetterParams<TItem, {
30
- props: ReturnType<AutocompleteCoreApi<TItem>['getRootProps']>;
31
- }>): ReturnType<AutocompleteCoreApi<TItem>['getRootProps']>;
32
- };
33
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- import { AutocompleteScopeApi, BaseItem } from '@algolia/autocomplete-core';
2
- import { AutocompleteComponents } from './AutocompleteComponents';
3
- import { HTMLTemplate, Pragma, PragmaFrag, Render, VNode } from './AutocompleteRenderer';
4
- import { AutocompleteState } from './AutocompleteState';
5
- export declare type AutocompleteRender<TItem extends BaseItem> = (params: AutocompleteScopeApi<TItem> & {
6
- children: VNode;
7
- state: AutocompleteState<TItem>;
8
- sections: VNode[];
9
- elements: Record<string, VNode>;
10
- components: AutocompleteComponents;
11
- createElement: Pragma;
12
- Fragment: PragmaFrag;
13
- html: HTMLTemplate;
14
- render: Render;
15
- }, root: HTMLElement) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type Pragma = (type: any, props: Record<string, any> | null, ...children: ComponentChildren[]) => JSX.Element;
3
- export declare type PragmaFrag = any;
4
- declare type ComponentChild = VNode<any> | string | number | boolean | null | undefined;
5
- declare type ComponentChildren = ComponentChild[] | ComponentChild;
6
- export declare type VNode<TProps = {}> = {
7
- type: any;
8
- key: string | number | any;
9
- props: TProps & {
10
- children: ComponentChildren;
11
- };
12
- };
13
- export declare type Render = (vnode: ComponentChild, parent: Element | Document | ShadowRoot | DocumentFragment, replaceNode?: Element | Text | undefined) => void;
14
- export declare type AutocompleteRenderer = {
15
- /**
16
- * The function to create virtual nodes.
17
- *
18
- * @default preact.createElement
19
- */
20
- createElement: Pragma;
21
- /**
22
- * The component to use to create fragments.
23
- *
24
- * @default preact.Fragment
25
- */
26
- Fragment: PragmaFrag;
27
- /**
28
- * The function to render children to an element.
29
- */
30
- render?: Render;
31
- };
32
- export declare type HTMLTemplate = (strings: TemplateStringsArray, ...values: any[]) => VNode | VNode[];
33
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,74 +0,0 @@
1
- import { AutocompleteSource as AutocompleteCoreSource, InternalAutocompleteSource as InternalAutocompleteCoreSource, BaseItem } from '@algolia/autocomplete-core';
2
- import { AutocompleteComponents } from './AutocompleteComponents';
3
- import { AutocompleteRenderer, HTMLTemplate, VNode } from './AutocompleteRenderer';
4
- import { AutocompleteState } from './AutocompleteState';
5
- declare type Template<TParams> = (params: TParams & AutocompleteRenderer & {
6
- components: AutocompleteComponents;
7
- html: HTMLTemplate;
8
- }) => VNode | VNode[] | string;
9
- /**
10
- * Templates to display in the autocomplete panel.
11
- *
12
- * A template can either return a string, or perform DOM mutations (manipulating DOM elements with JavaScript and attaching events) without returning a string.
13
- */
14
- export declare type SourceTemplates<TItem extends BaseItem> = {
15
- /**
16
- * A function that returns the template for each item of the source.
17
- *
18
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/templates/#param-item
19
- */
20
- item: Template<{
21
- item: TItem;
22
- state: AutocompleteState<TItem>;
23
- }>;
24
- /**
25
- * A function that returns the template for the header (before the list of items).
26
- *
27
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/templates/#param-header
28
- */
29
- header?: Template<{
30
- state: AutocompleteState<TItem>;
31
- source: AutocompleteSource<TItem>;
32
- items: TItem[];
33
- }>;
34
- /**
35
- * A function that returns the template for the footer (after the list of items).
36
- *
37
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/templates/#param-footer
38
- */
39
- footer?: Template<{
40
- state: AutocompleteState<TItem>;
41
- source: AutocompleteSource<TItem>;
42
- items: TItem[];
43
- }>;
44
- /**
45
- * A function that returns the template for when there are no items.
46
- *
47
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/templates/#param-noresults
48
- */
49
- noResults?: Template<{
50
- state: AutocompleteState<TItem>;
51
- source: AutocompleteSource<TItem>;
52
- }>;
53
- };
54
- declare type WithTemplates<TType, TItem extends BaseItem> = TType & {
55
- /**
56
- * A set of templates to customize how sections and their items are displayed.
57
- *
58
- * See [**Displaying items with Templates**](templates) for more information.
59
- *
60
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-templates
61
- */
62
- templates: SourceTemplates<TItem>;
63
- };
64
- export interface AutocompleteCoreSourceWithDocs<TItem extends BaseItem> extends AutocompleteCoreSource<TItem> {
65
- /**
66
- * Unique identifier for the source.
67
- *
68
- * It is used as value for the `data-autocomplete-source-id` attribute of the source `section` container.
69
- */
70
- sourceId: string;
71
- }
72
- export declare type AutocompleteSource<TItem extends BaseItem> = WithTemplates<AutocompleteCoreSourceWithDocs<TItem>, TItem>;
73
- export declare type InternalAutocompleteSource<TItem extends BaseItem> = WithTemplates<InternalAutocompleteCoreSource<TItem>, TItem>;
74
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import { AutocompleteState as AutocompleteCoreState, BaseItem } from '@algolia/autocomplete-core';
2
- import { AutocompleteCollection } from './AutocompleteCollection';
3
- export declare type AutocompleteState<TItem extends BaseItem> = Omit<AutocompleteCoreState<TItem>, 'collections'> & {
4
- /**
5
- * The collections of items.
6
- *
7
- * @link https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/state/#param-collections
8
- */
9
- collections: Array<AutocompleteCollection<TItem>>;
10
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- export declare type AutocompleteTranslations = {
2
- detachedCancelButtonText: string;
3
- clearButtonTitle: string;
4
- submitButtonTitle: string;
5
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- export declare type HighlightHitParams<THit> = {
2
- /**
3
- * The Algolia hit whose attribute to retrieve the highlighted parts from.
4
- */
5
- hit: THit;
6
- /**
7
- * The attribute to retrieve the highlighted parts from.
8
- *
9
- * You can use the array syntax to reference nested attributes.
10
- */
11
- attribute: keyof THit | string[];
12
- /**
13
- * The tag name to use for highlighted parts.
14
- *
15
- * @default "mark"
16
- */
17
- tagName?: string;
18
- };
@@ -1 +0,0 @@
1
- export {};