@mui/internal-docs-infra 0.12.1-canary.47 → 0.12.1-canary.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-docs-infra",
3
- "version": "0.12.1-canary.47",
3
+ "version": "0.12.1-canary.49",
4
4
  "author": "MUI Team",
5
5
  "description": "MUI Infra - internal documentation creation tools.",
6
6
  "license": "MIT",
@@ -30,15 +30,14 @@
30
30
  "homepage": "https://github.com/mui/mui-public/tree/master/packages/docs-infra",
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.29.7",
33
- "@csstools/postcss-light-dark-function": "^3.0.3",
34
- "@csstools/postcss-relative-color-syntax": "^4.0.10",
35
- "@csstools/postcss-stepped-value-functions": "^5.0.4",
33
+ "@csstools/postcss-light-dark-function": "^3.0.4",
34
+ "@csstools/postcss-relative-color-syntax": "^4.0.11",
35
+ "@csstools/postcss-stepped-value-functions": "^5.0.5",
36
36
  "@orama/orama": "^3.1.18",
37
37
  "@orama/plugin-qps": "^3.1.18",
38
38
  "@orama/stemmers": "^3.1.18",
39
- "@orama/stopwords": "^3.1.18",
40
39
  "@wooorm/starry-night": "^3.11.0",
41
- "autoprefixer": "^10.5.5",
40
+ "autoprefixer": "^10.6.0",
42
41
  "chalk": "^6.0.0",
43
42
  "clipboard-copy": "^4.0.1",
44
43
  "es-toolkit": "^1.52.0",
@@ -63,7 +62,7 @@
63
62
  "remark-mdx": "^3.1.1",
64
63
  "remark-parse": "^11.0.0",
65
64
  "remark-stringify": "^11.0.0",
66
- "remark-typography": "^0.8.3",
65
+ "remark-typography": "^0.8.6",
67
66
  "sucrase": "^3.35.1",
68
67
  "typescript": "npm:@typescript/typescript6@6.0.2",
69
68
  "typescript-api-extractor": "1.0.0-beta.6",
@@ -815,5 +814,5 @@
815
814
  "bin": {
816
815
  "docs-infra": "./cli/index.mjs"
817
816
  },
818
- "gitSha": "81765a8f621d2dc77469da42ae427c0b7e680e4f"
817
+ "gitSha": "090afd6535535ba4bd6d39958578e5380e48bec2"
819
818
  }
@@ -84,7 +84,7 @@ export interface UseSearchOptions {
84
84
  tolerance?: number;
85
85
  /** Maximum number of search results */
86
86
  limit?: number;
87
- /** Enable stemming and stopwords (uses English by default) */
87
+ /** Enable stemming (uses English by default) */
88
88
  enableStemming?: boolean;
89
89
  /** Boost values for different result types and fields */
90
90
  boost?: Partial<Record<string, number>>;
@@ -4,17 +4,8 @@ import * as React from 'react';
4
4
  import { create, insertMultiple, search as oramaSearch } from '@orama/orama';
5
5
  import { pluginQPS } from '@orama/plugin-qps';
6
6
  import { stemmer, language } from '@orama/stemmers/english';
7
- import { stopwords as englishStopwords } from '@orama/stopwords/english';
8
7
  import { resolvePageUrl } from "../resolvePageUrl/index.mjs";
9
8
 
10
- // https://github.com/oramasearch/orama/blob/main/packages/stopwords/lib/en.js
11
- // Removed words that might be meaningful in a software documentation context
12
- const stopWords = englishStopwords.filter(word => word !== 'about' && word !== 'but' &&
13
- // start of button
14
- word !== 'for' &&
15
- // part of form
16
- word !== 'between' && word !== 'before' && word !== 'after' && word !== 'above' && word !== 'below' && word !== 'once' && word !== 'then' && word !== 'where' && word !== 'to' && word !== 'from' && word !== 'up' && word !== 'down' && word !== 'in' && word !== 'out' && word !== 'on' && word !== 'off' && word !== 'over' && word !== 'under');
17
-
18
9
  /**
19
10
  * Type for our search document structure
20
11
  */
@@ -354,8 +345,7 @@ export function useSearch(options) {
354
345
  stemming: true,
355
346
  language,
356
347
  stemmer,
357
- stemmerSkipProperties: ['type', 'group', 'slug', 'sectionTitle', 'page', 'part', 'export', 'dataAttributes', 'cssVariables', 'props'],
358
- stopWords
348
+ stemmerSkipProperties: ['type', 'group', 'slug', 'sectionTitle', 'page', 'part', 'export', 'dataAttributes', 'cssVariables', 'props']
359
349
  }
360
350
  } : undefined,
361
351
  plugins: [pluginQPS()]