@docusaurus/theme-search-algolia 0.0.0-5454 → 0.0.0-5457

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.
@@ -29,6 +29,7 @@ import {
29
29
  useSearchResultUrlProcessor,
30
30
  } from '@docusaurus/theme-search-algolia/client';
31
31
  import Layout from '@theme/Layout';
32
+ import Heading from '@theme/Heading';
32
33
  import styles from './styles.module.css';
33
34
  // Very simple pluralization: probably good enough for now
34
35
  function useDocumentsFoundPlural() {
@@ -307,7 +308,7 @@ function SearchPageContent() {
307
308
  </Head>
308
309
 
309
310
  <div className="container margin-vert--lg">
310
- <h1>{getTitle()}</h1>
311
+ <Heading as="h1">{getTitle()}</Heading>
311
312
 
312
313
  <form className="row" onSubmit={(e) => e.preventDefault()}>
313
314
  <div
@@ -388,9 +389,9 @@ function SearchPageContent() {
388
389
  {searchResultState.items.map(
389
390
  ({title, url, summary, breadcrumbs}, i) => (
390
391
  <article key={i} className={styles.searchResultItem}>
391
- <h2 className={styles.searchResultItemHeading}>
392
+ <Heading as="h2" className={styles.searchResultItemHeading}>
392
393
  <Link to={url} dangerouslySetInnerHTML={{__html: title}} />
393
- </h2>
394
+ </Heading>
394
395
 
395
396
  {breadcrumbs.length > 0 && (
396
397
  <nav aria-label="breadcrumbs">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-search-algolia",
3
- "version": "0.0.0-5454",
3
+ "version": "0.0.0-5457",
4
4
  "description": "Algolia search component for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": [
@@ -34,13 +34,13 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@docsearch/react": "^3.3.2",
37
- "@docusaurus/core": "0.0.0-5454",
38
- "@docusaurus/logger": "0.0.0-5454",
39
- "@docusaurus/plugin-content-docs": "0.0.0-5454",
40
- "@docusaurus/theme-common": "0.0.0-5454",
41
- "@docusaurus/theme-translations": "0.0.0-5454",
42
- "@docusaurus/utils": "0.0.0-5454",
43
- "@docusaurus/utils-validation": "0.0.0-5454",
37
+ "@docusaurus/core": "0.0.0-5457",
38
+ "@docusaurus/logger": "0.0.0-5457",
39
+ "@docusaurus/plugin-content-docs": "0.0.0-5457",
40
+ "@docusaurus/theme-common": "0.0.0-5457",
41
+ "@docusaurus/theme-translations": "0.0.0-5457",
42
+ "@docusaurus/utils": "0.0.0-5457",
43
+ "@docusaurus/utils-validation": "0.0.0-5457",
44
44
  "algoliasearch": "^4.14.3",
45
45
  "algoliasearch-helper": "^3.11.2",
46
46
  "clsx": "^1.2.1",
@@ -51,7 +51,7 @@
51
51
  "utility-types": "^3.10.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@docusaurus/module-type-aliases": "0.0.0-5454"
54
+ "@docusaurus/module-type-aliases": "0.0.0-5457"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "react": "^16.8.4 || ^17.0.0",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=16.14"
62
62
  },
63
- "gitHead": "420bebae1376648bc248021529a6fd1393caed97"
63
+ "gitHead": "ee5028f585f6d4f474839fafaa2d7d1fb4c46564"
64
64
  }
@@ -33,7 +33,7 @@ import {
33
33
  useSearchResultUrlProcessor,
34
34
  } from '@docusaurus/theme-search-algolia/client';
35
35
  import Layout from '@theme/Layout';
36
-
36
+ import Heading from '@theme/Heading';
37
37
  import styles from './styles.module.css';
38
38
 
39
39
  // Very simple pluralization: probably good enough for now
@@ -374,7 +374,7 @@ function SearchPageContent(): JSX.Element {
374
374
  </Head>
375
375
 
376
376
  <div className="container margin-vert--lg">
377
- <h1>{getTitle()}</h1>
377
+ <Heading as="h1">{getTitle()}</Heading>
378
378
 
379
379
  <form className="row" onSubmit={(e) => e.preventDefault()}>
380
380
  <div
@@ -455,9 +455,9 @@ function SearchPageContent(): JSX.Element {
455
455
  {searchResultState.items.map(
456
456
  ({title, url, summary, breadcrumbs}, i) => (
457
457
  <article key={i} className={styles.searchResultItem}>
458
- <h2 className={styles.searchResultItemHeading}>
458
+ <Heading as="h2" className={styles.searchResultItemHeading}>
459
459
  <Link to={url} dangerouslySetInnerHTML={{__html: title}} />
460
- </h2>
460
+ </Heading>
461
461
 
462
462
  {breadcrumbs.length > 0 && (
463
463
  <nav aria-label="breadcrumbs">