@telia-ace/knowledge-widget-components-search 1.3.30 → 1.3.31-rc.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.
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  type Props = {
3
4
  inputHasFocus: boolean;
4
5
  searchContainerRef: HTMLElement | null;
package/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- import SearchComponent from './search-component';
1
+ import { default as SearchComponent } from './search-component';
2
+
2
3
  export default SearchComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/knowledge-widget-components-search",
3
- "version": "1.3.30",
3
+ "version": "1.3.31-rc.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -10,12 +10,12 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "@telia-ace/knowledge-widget-core": "^1.3.30",
14
- "@telia-ace/knowledge-widget-ui": "^1.3.30",
15
- "@telia-ace/widget-utilities": "^1.3.30",
16
- "@telia-ace/knowledge-data-client": "^1.3.30",
17
- "@telia-ace/widget-routing": "^1.3.30",
18
- "@telia-ace/widget-types-grid": "^1.3.30",
13
+ "@telia-ace/knowledge-widget-core": "^1.3.31-rc.3",
14
+ "@telia-ace/knowledge-widget-ui": "^1.3.31-rc.3",
15
+ "@telia-ace/widget-utilities": "^1.3.31-rc.3",
16
+ "@telia-ace/knowledge-data-client": "^1.3.31-rc.3",
17
+ "@telia-ace/widget-routing": "^1.3.31-rc.3",
18
+ "@telia-ace/widget-types-grid": "^1.3.31-rc.3",
19
19
  "@webprovisions/platform": "^1.1.4"
20
20
  },
21
21
  "peerDependencies": {
@@ -1,5 +1,6 @@
1
- import { Category, Tag } from '@telia-ace/knowledge-widget-core';
2
- import React from 'react';
1
+ import { Category, Tag } from '../../../knowledge/core/src/index.ts';
2
+ import { default as React } from 'react';
3
+
3
4
  type Props = {
4
5
  filterPhrase: string;
5
6
  items: Category[] | Tag[];
@@ -1,5 +1,6 @@
1
- import { Category, Tag } from '@telia-ace/knowledge-widget-core';
1
+ import { Category, Tag } from '../../../knowledge/core/src/index.ts';
2
2
  import { Container } from '@webprovisions/platform';
3
+
3
4
  export type SearchComponentProps = {
4
5
  route?: string;
5
6
  role?: string;
package/search.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  type Props = {
3
4
  className: string;
4
5
  role?: string;
package/use-search.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type ReturnType = [
3
2
  (arg: React.KeyboardEvent | React.MouseEvent | boolean) => void,
4
3
  (navigateToHome: boolean) => void,
package/utils.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import { Category, Tag } from '@telia-ace/knowledge-widget-core';
1
+ import { Category, Tag } from '../../../knowledge/core/src/index.ts';
2
+
2
3
  export declare const match: (title: string, phrase: string) => boolean;
3
- export declare const filterItems: (items: (Category | Tag)[] | undefined, type: 'tag' | 'guideCategory', phrase: string) => any[];
4
+ export declare const filterItems: (items: (Tag | Category)[] | undefined, type: 'tag' | 'guideCategory', phrase: string) => any[];