@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.
- package/dist/answer-version-picker.d.ts +10 -1
- package/dist/categories.d.ts +8 -1
- package/dist/feedback.d.ts +7 -1
- package/dist/functions.d.ts +29 -1
- package/dist/guide-component.d.ts +69 -1
- package/dist/guide.35a46def.js +859 -0
- package/dist/guide.35a46def.js.map +1 -0
- package/dist/guide.d.ts +7 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +134 -2
- package/dist/index.js.map +1 -1
- package/dist/languages.d.ts +17 -1
- package/dist/toolbar.d.ts +8 -1
- package/dist/use-feedback.d.ts +4 -1
- package/package.json +9 -9
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
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;
|
package/dist/categories.d.ts
CHANGED
package/dist/feedback.d.ts
CHANGED
package/dist/functions.d.ts
CHANGED
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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;
|