@telia-ace/knowledge-widget-components-guide 1.0.38-experimental.9 → 1.0.38

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 +1,10 @@
1
- export declare const x: {};
1
+ import React from 'react';
2
+ import { AvailablePerspectives, GuideProps } from './guide-component';
3
+ type Props = {
4
+ className?: string;
5
+ defaultAnswerVersionLabel: string;
6
+ availablePerspectives?: AvailablePerspectives[];
7
+ guide: GuideProps;
8
+ };
9
+ declare const AnswerVersionPicker: React.FC<Props>;
10
+ export default AnswerVersionPicker;
@@ -1 +1,8 @@
1
- export declare const x: {};
1
+ import React from 'react';
2
+ import { GuideProps, ToolbarProps } from './guide-component';
3
+ type Props = {
4
+ guide: GuideProps;
5
+ toolbar: ToolbarProps;
6
+ };
7
+ declare const Categories: React.FC<Props>;
8
+ export default Categories;
@@ -1 +1,7 @@
1
- export declare const x: {};
1
+ import React from 'react';
2
+ type Props = {
3
+ backButtonShown?: boolean;
4
+ accordion?: boolean;
5
+ };
6
+ declare const Feedback: React.FC<Props>;
7
+ export default Feedback;
@@ -1 +1,29 @@
1
- export declare const x: {};
1
+ import { PickerTypes } from '@telia-ace/knowledge-widget-core';
2
+ import { DispatchAction } from '@telia-ace/knowledge-widget-ui';
3
+ import React from 'react';
4
+ import { GuideProps } from './guide-component';
5
+ export type FunctionListItem = {
6
+ type: string;
7
+ child: React.ReactNode;
8
+ };
9
+ type Props = {
10
+ header?: string;
11
+ tooltip?: string;
12
+ printActionLabel?: string;
13
+ copyActionLabel?: string;
14
+ addFavoriteTooltip?: string;
15
+ removeFavoriteCancelLabel?: string;
16
+ removeFavoriteConfirmLabel?: string;
17
+ removeFavoriteHeader?: string;
18
+ removeFavoriteLabel?: string;
19
+ removeFavoriteTooltip?: string;
20
+ toolbarFunctionsCloseButtonAriaLabel?: string;
21
+ guide: GuideProps;
22
+ allowCopy?: boolean;
23
+ allowPrint?: boolean;
24
+ showFavoriteToggle?: boolean;
25
+ picker?: PickerTypes;
26
+ dispatch: DispatchAction;
27
+ };
28
+ declare const Functions: React.FC<Props>;
29
+ export default Functions;
@@ -1 +1,69 @@
1
- export declare const x: {};
1
+ import { ContactMethodType } from '@telia-ace/knowledge-widget-adapters';
2
+ import { FavoriteProperties, LanguageProperties, MetaDataProperties } from '@telia-ace/knowledge-widget-component-utilities';
3
+ import { DialogItem, PickerTypes } from '@telia-ace/knowledge-widget-core';
4
+ import { DataError } from '@telia-ace/knowledge-widget-types-grid';
5
+ import { FormComponentInstanceProperties } from '@telia-ace/widget-forms';
6
+ import { Container } from '@webprovisions/platform';
7
+ export type GuideProps = {
8
+ id: string;
9
+ title: string;
10
+ body: string;
11
+ connection: string;
12
+ categories: number[];
13
+ hasHandover: boolean;
14
+ allowFeedback: boolean;
15
+ perspectives: {
16
+ [key: string]: string;
17
+ };
18
+ translations?: {
19
+ [key: string]: string;
20
+ };
21
+ modified?: string;
22
+ published?: string;
23
+ publishedBy?: string | null;
24
+ modifiedBy?: string | null;
25
+ perspective: string | null;
26
+ };
27
+ export type AvailablePerspectives = {
28
+ name: string;
29
+ title: string;
30
+ };
31
+ export type GuideComponentProps = {
32
+ showHeader?: boolean;
33
+ showFeedback?: boolean;
34
+ feedbackDirection?: 'horizontal' | 'vertical';
35
+ feedbackGiven?: 'positive' | 'negative';
36
+ contactMethods?: ContactMethodType[];
37
+ handoverContactMethods?: ContactMethodType[];
38
+ showAnswerVersions?: boolean;
39
+ feedbackHeader?: string;
40
+ contactHeader?: string;
41
+ toolbarFunctionsHeader?: string;
42
+ toolbarLanguageHeader?: string;
43
+ positiveFeedbackLabel?: string;
44
+ negativeFeedbackLabel?: string;
45
+ contactFeedbackLabel?: string;
46
+ feedbackRecognitionLabel?: string;
47
+ defaultAnswerVersionLabel?: string;
48
+ backButtonLabel?: string;
49
+ toolbarFunctionsTooltip?: string;
50
+ toolbarFunctionsCloseButtonAriaLabel?: string;
51
+ copyActionLabel?: string;
52
+ printActionLabel?: string;
53
+ toolbarLanguageTooltip?: string;
54
+ toolbar?: ToolbarProps;
55
+ guide?: GuideProps;
56
+ dialog?: DialogItem[];
57
+ error?: DataError;
58
+ availablePerspectives?: AvailablePerspectives[];
59
+ } & FormComponentInstanceProperties & FavoriteProperties & MetaDataProperties & LanguageProperties;
60
+ export type ToolbarProps = {
61
+ language?: boolean;
62
+ guideCategories?: boolean;
63
+ allowCopy?: boolean;
64
+ allowPrint?: boolean;
65
+ showFavoriteToggle?: boolean;
66
+ picker?: PickerTypes;
67
+ };
68
+ export declare const GuideComponent: (container: Container) => Promise<void>;
69
+ export default GuideComponent;