@docusaurus/theme-search-algolia 0.0.0-4378 → 0.0.0-4379

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.
@@ -6,6 +6,11 @@
6
6
  */
7
7
  import { Joi } from '@docusaurus/utils-validation';
8
8
  import type { ThemeConfig, Validate, ValidationResult } from '@docusaurus/types';
9
+ export declare const DEFAULT_CONFIG: {
10
+ contextualSearch: boolean;
11
+ appId: string;
12
+ searchParameters: {};
13
+ };
9
14
  export declare const Schema: Joi.ObjectSchema<any>;
10
15
  export declare function validateThemeConfig({ validate, themeConfig, }: {
11
16
  validate: Validate<ThemeConfig>;
@@ -6,27 +6,26 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.validateThemeConfig = exports.Schema = void 0;
9
+ exports.validateThemeConfig = exports.Schema = exports.DEFAULT_CONFIG = void 0;
10
10
  const utils_validation_1 = require("@docusaurus/utils-validation");
11
- const DEFAULT_CONFIG = {
11
+ exports.DEFAULT_CONFIG = {
12
12
  contextualSearch: false,
13
13
  // By default, all Docusaurus sites are using the same AppId
14
14
  // This has been designed on purpose with Algolia.
15
15
  appId: 'BH4D9OD16A',
16
16
  searchParameters: {},
17
17
  };
18
- exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
19
18
  exports.Schema = utils_validation_1.Joi.object({
20
19
  algolia: utils_validation_1.Joi.object({
21
20
  // Docusaurus attributes
22
- contextualSearch: utils_validation_1.Joi.boolean().default(DEFAULT_CONFIG.contextualSearch),
21
+ contextualSearch: utils_validation_1.Joi.boolean().default(exports.DEFAULT_CONFIG.contextualSearch),
23
22
  externalUrlRegex: utils_validation_1.Joi.string().optional(),
24
23
  // Algolia attributes
25
- appId: utils_validation_1.Joi.string().default(DEFAULT_CONFIG.appId),
24
+ appId: utils_validation_1.Joi.string().default(exports.DEFAULT_CONFIG.appId),
26
25
  apiKey: utils_validation_1.Joi.string().required(),
27
26
  indexName: utils_validation_1.Joi.string().required(),
28
27
  searchParameters: utils_validation_1.Joi.object()
29
- .default(DEFAULT_CONFIG.searchParameters)
28
+ .default(exports.DEFAULT_CONFIG.searchParameters)
30
29
  .unknown(),
31
30
  })
32
31
  .label('themeConfig.algolia')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-search-algolia",
3
- "version": "0.0.0-4378",
3
+ "version": "0.0.0-4379",
4
4
  "description": "Algolia search component for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "exports": {
@@ -21,16 +21,16 @@
21
21
  "build": "yarn build:server && yarn build:browser && yarn build:copy",
22
22
  "build:server": "tsc --project tsconfig.server.json",
23
23
  "build:browser": "tsc --project tsconfig.browser.json",
24
- "build:copy": "node copyUntypedFiles.js"
24
+ "build:copy": "node copyUntypedFiles.mjs"
25
25
  },
26
26
  "dependencies": {
27
27
  "@docsearch/react": "^3.0.0-alpha.39",
28
- "@docusaurus/core": "0.0.0-4378",
29
- "@docusaurus/logger": "0.0.0-4378",
30
- "@docusaurus/theme-common": "0.0.0-4378",
31
- "@docusaurus/theme-translations": "0.0.0-4378",
32
- "@docusaurus/utils": "0.0.0-4378",
33
- "@docusaurus/utils-validation": "0.0.0-4378",
28
+ "@docusaurus/core": "0.0.0-4379",
29
+ "@docusaurus/logger": "0.0.0-4379",
30
+ "@docusaurus/theme-common": "0.0.0-4379",
31
+ "@docusaurus/theme-translations": "0.0.0-4379",
32
+ "@docusaurus/utils": "0.0.0-4379",
33
+ "@docusaurus/utils-validation": "0.0.0-4379",
34
34
  "algoliasearch": "^4.10.5",
35
35
  "algoliasearch-helper": "^3.5.5",
36
36
  "clsx": "^1.1.1",
@@ -39,7 +39,7 @@
39
39
  "tslib": "^2.3.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@docusaurus/module-type-aliases": "0.0.0-4378",
42
+ "@docusaurus/module-type-aliases": "0.0.0-4379",
43
43
  "fs-extra": "^10.0.0"
44
44
  },
45
45
  "peerDependencies": {
@@ -49,5 +49,5 @@
49
49
  "engines": {
50
50
  "node": ">=14"
51
51
  },
52
- "gitHead": "bd7999376fa63feafe5b169296beb91dac362954"
52
+ "gitHead": "92aba1ab0bda5fe2b1f6cc8cdd50677051187dcb"
53
53
  }
@@ -8,7 +8,7 @@
8
8
  import {Joi} from '@docusaurus/utils-validation';
9
9
  import type {ThemeConfig, Validate, ValidationResult} from '@docusaurus/types';
10
10
 
11
- const DEFAULT_CONFIG = {
11
+ export const DEFAULT_CONFIG = {
12
12
  contextualSearch: false, // future: maybe we want to enable this by default
13
13
 
14
14
  // By default, all Docusaurus sites are using the same AppId
@@ -17,7 +17,6 @@ const DEFAULT_CONFIG = {
17
17
 
18
18
  searchParameters: {},
19
19
  };
20
- exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
21
20
 
22
21
  export const Schema = Joi.object({
23
22
  algolia: Joi.object({