@telia-ace/knowledge-widget-adapters 1.0.33 → 1.0.34-next.1
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.
|
@@ -3,11 +3,11 @@ import { Form } from '@telia-ace/widget-forms';
|
|
|
3
3
|
import { Container } from '@webprovisions/platform';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { ContactMethodProps } from './ui';
|
|
6
|
-
export
|
|
6
|
+
export type ReactComponentImport = Promise<{
|
|
7
7
|
default: React.FunctionComponent<any>;
|
|
8
8
|
}>;
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type Click = (e: React.MouseEvent, cm: ContactMethodProps) => void;
|
|
10
|
+
export type AdapterSettings = {
|
|
11
11
|
clientName: string;
|
|
12
12
|
render: string | ReactComponentImport;
|
|
13
13
|
handleDescription?: (cm: ContactMethodProps) => Promise<string> | string;
|
|
@@ -18,7 +18,7 @@ export declare type AdapterSettings = {
|
|
|
18
18
|
onSubmit?: (cm: ContactMethodProps) => Promise<string> | string;
|
|
19
19
|
onComplete?: (cm: ContactMethodProps) => Promise<void> | void;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type ValidationResult = {
|
|
22
22
|
errors?: {
|
|
23
23
|
[key: string]: string;
|
|
24
24
|
};
|
|
@@ -5,7 +5,7 @@ import { ContactMethodType } from './contact-method';
|
|
|
5
5
|
export declare const contactItemList: (p: {
|
|
6
6
|
theme: Theme;
|
|
7
7
|
}) => import("@emotion/react").SerializedStyles;
|
|
8
|
-
|
|
8
|
+
type Props = {
|
|
9
9
|
contactMethods: ContactMethodType[];
|
|
10
10
|
header?: string;
|
|
11
11
|
className?: string;
|
|
@@ -2,7 +2,7 @@ import { Theme } from '@emotion/react';
|
|
|
2
2
|
import { Symbol } from '@telia-ace/knowledge-widget-core';
|
|
3
3
|
import { DispatchAction, HtmlParseInstruction } from '@telia-ace/knowledge-widget-ui';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
export
|
|
5
|
+
export type ContactMethodType = {
|
|
6
6
|
id: string;
|
|
7
7
|
title: string;
|
|
8
8
|
symbol?: Symbol;
|
|
@@ -17,7 +17,7 @@ export declare type ContactMethodType = {
|
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
guideId?: string;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type Props = Merge<ContactMethodType, {
|
|
21
21
|
className?: string;
|
|
22
22
|
onClick?: (event: React.MouseEvent, properties: Props) => void;
|
|
23
23
|
renderDefault?: (extraProps?: Partial<Props>) => any;
|
package/dist/create-adapter.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-adapters",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34-next.1",
|
|
4
4
|
"description": "ACE knowledge adapters for ACE widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/knowledge-serviceclient": "^1.0.
|
|
25
|
-
"@telia-ace/knowledge-widget-core": "^1.0.
|
|
26
|
-
"@telia-ace/knowledge-widget-ui": "^1.0.
|
|
27
|
-
"@telia-ace/widget-forms": "^1.0.
|
|
28
|
-
"@telia-ace/widget-routing": "^1.0.
|
|
29
|
-
"@telia-ace/widget-utilities": "^1.0.
|
|
24
|
+
"@telia-ace/knowledge-serviceclient": "^1.0.13-next.1",
|
|
25
|
+
"@telia-ace/knowledge-widget-core": "^1.0.24-next.1",
|
|
26
|
+
"@telia-ace/knowledge-widget-ui": "^1.0.30-next.1",
|
|
27
|
+
"@telia-ace/widget-forms": "^1.0.25-next.1",
|
|
28
|
+
"@telia-ace/widget-routing": "^1.0.19-next.1",
|
|
29
|
+
"@telia-ace/widget-utilities": "^1.0.7-next.1",
|
|
30
30
|
"@webprovisions/platform": "^1.1.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|