@algolia/algolia-custom-helpcenter-search 2.1.0 → 2.3.3

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.
@@ -5,6 +5,7 @@ export declare const AUTOCOMPLETE_PLACEHOLDERS: string[];
5
5
  export declare const AUTOCOMPLETE_PLACEHOLDER_TEMPLATE: (placeholder: string) => string;
6
6
  export declare const SOURCES: Source[];
7
7
  export declare const titleAttribute: (item: any) => string | string[];
8
+ export declare const contentAttribute: (item: any) => 'content' | 'description' | 'body_safe';
8
9
  export declare const BASE_URLS: Record<SourceId, string>;
9
10
  export declare const PATHNAMES: {
10
11
  search: any;
@@ -1,11 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import type { AutocompleteComponents } from '@algolia/autocomplete-js';
3
3
  import type { FederatedHits, HitWithAnswer, SourceId } from './types';
4
- export declare const bestHitTemplate: ({ item, titleAttribute, }: {
4
+ export declare const bestHitTemplate: ({ item, titleAttribute, contentAttribute, components, }: {
5
5
  item: HitWithAnswer<FederatedHits> & {
6
6
  sourceId: SourceId;
7
7
  };
8
8
  titleAttribute: string | string[];
9
+ contentAttribute: 'description' | 'content' | 'body_safe';
10
+ components: AutocompleteComponents;
9
11
  }) => JSX.Element;
10
12
  export declare const hitTemplate: (item: HitWithAnswer<FederatedHits> & {
11
13
  sourceId: SourceId;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@algolia/algolia-custom-helpcenter-search",
3
- "version": "2.1.0",
3
+ "version": "2.3.3",
4
4
  "description": "Algolia's Zendesk Help Center search implementation",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/algolia/custom-zendesk-search.git"
8
8
  },
9
9
  "author": "Alphonse Bouy <alphonse.bouy@gmail.com>",
10
- "license": "UNLICENSED",
10
+ "license": "MIT",
11
11
  "files": [
12
12
  "lib"
13
13
  ],
@@ -81,12 +81,6 @@
81
81
  "lint": "eslint --ext .ts,.tsx src"
82
82
  },
83
83
  "types": "lib/index.es.d.ts",
84
- "exports": {
85
- ".": {
86
- "import": "./lib/index.es.js",
87
- "require": "./lib/index.umd.js"
88
- }
89
- },
90
84
  "bugs": {
91
85
  "url": "https://github.com/algolia/custom-zendesk-search/issues"
92
86
  },