@telia-ace/knowledge-widget-components-guide 1.0.21 → 1.0.23
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/LICENSE.txt +5 -5
- package/README.md +3 -3
- package/dist/answer-version-picker.d.ts +10 -10
- package/dist/categories.d.ts +8 -8
- package/dist/feedback.d.ts +7 -7
- package/dist/functions.d.ts +29 -29
- package/dist/guide-component.d.ts +69 -69
- package/dist/{guide.858ab7a6.js → guide.19e7d4a1.js} +336 -318
- package/dist/guide.19e7d4a1.js.map +1 -0
- package/dist/guide.d.ts +7 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +29 -24
- package/dist/index.js.map +1 -1
- package/dist/languages.d.ts +17 -17
- package/dist/toolbar.d.ts +8 -8
- package/dist/use-feedback.d.ts +4 -4
- package/package.json +11 -10
- package/dist/guide.858ab7a6.js.map +0 -1
package/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Copyright © 2021, Telia Company AB. All rights reserved.
|
|
2
|
-
|
|
3
|
-
THIS PACKAGE AND CONTAINING SOFTWARE IS PART OF
|
|
4
|
-
THE HUMANY SERVICE. BY USING THIS SOFTWARE YOU
|
|
5
|
-
AGREE TO THE FOLLOWING TERMS AND CONDITIONS:
|
|
1
|
+
Copyright © 2021, Telia Company AB. All rights reserved.
|
|
2
|
+
|
|
3
|
+
THIS PACKAGE AND CONTAINING SOFTWARE IS PART OF
|
|
4
|
+
THE HUMANY SERVICE. BY USING THIS SOFTWARE YOU
|
|
5
|
+
AGREE TO THE FOLLOWING TERMS AND CONDITIONS:
|
|
6
6
|
http://www.humany.com/legal
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# `@telia-ace/knowledge-widget-components-guide`
|
|
2
|
-
|
|
3
|
-
Guide component for ACE Knowledge Widgets.
|
|
1
|
+
# `@telia-ace/knowledge-widget-components-guide`
|
|
2
|
+
|
|
3
|
+
Guide component for ACE Knowledge Widgets.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AvailablePerspectives, GuideProps } from './guide-component';
|
|
3
|
-
declare 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
|
+
import React from 'react';
|
|
2
|
+
import { AvailablePerspectives, GuideProps } from './guide-component';
|
|
3
|
+
declare 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;
|
package/dist/categories.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { GuideProps, ToolbarProps } from './guide-component';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
guide: GuideProps;
|
|
5
|
-
toolbar: ToolbarProps;
|
|
6
|
-
};
|
|
7
|
-
declare const Categories: React.FC<Props>;
|
|
8
|
-
export default Categories;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GuideProps, ToolbarProps } from './guide-component';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
guide: GuideProps;
|
|
5
|
+
toolbar: ToolbarProps;
|
|
6
|
+
};
|
|
7
|
+
declare const Categories: React.FC<Props>;
|
|
8
|
+
export default Categories;
|
package/dist/feedback.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
backButtonShown?: boolean;
|
|
4
|
-
accordion?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const Feedback: React.SFC<Props>;
|
|
7
|
-
export default Feedback;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
backButtonShown?: boolean;
|
|
4
|
+
accordion?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const Feedback: React.SFC<Props>;
|
|
7
|
+
export default Feedback;
|
package/dist/functions.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
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 declare type FunctionListItem = {
|
|
6
|
-
type: string;
|
|
7
|
-
child: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
declare 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
|
+
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 declare type FunctionListItem = {
|
|
6
|
+
type: string;
|
|
7
|
+
child: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare 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,69 +1,69 @@
|
|
|
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 declare 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 declare type AvailablePerspectives = {
|
|
28
|
-
name: string;
|
|
29
|
-
title: string;
|
|
30
|
-
};
|
|
31
|
-
export declare 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 declare 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;
|
|
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 declare 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 declare type AvailablePerspectives = {
|
|
28
|
+
name: string;
|
|
29
|
+
title: string;
|
|
30
|
+
};
|
|
31
|
+
export declare 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 declare 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;
|