@integry/sdk 3.0.17 → 3.1.0
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/esm/index.csm.d.ts +19 -1
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +17 -9
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { html } from 'htm/preact';
|
|
2
|
+
import { VNode } from "preact";
|
|
1
3
|
type IntegrySDKEvents = {
|
|
2
4
|
ready: ({ deploymentId }: {
|
|
3
5
|
deploymentId: number;
|
|
@@ -60,6 +62,10 @@ declare enum TemplateFormRenderModes {
|
|
|
60
62
|
DETACHED = "DETACHED",
|
|
61
63
|
CUSTOM = "CUSTOM"
|
|
62
64
|
}
|
|
65
|
+
declare enum TemplateListingRenderModes {
|
|
66
|
+
GRID = "GRID",
|
|
67
|
+
LIST = "LIST"
|
|
68
|
+
}
|
|
63
69
|
type Authorization = {
|
|
64
70
|
id: number;
|
|
65
71
|
authorization_type: string;
|
|
@@ -69,10 +75,21 @@ type Authorization = {
|
|
|
69
75
|
integration_count?: number;
|
|
70
76
|
user_identity: string;
|
|
71
77
|
};
|
|
78
|
+
type FlowCardProps = {
|
|
79
|
+
imgUrl: string;
|
|
80
|
+
name: string;
|
|
81
|
+
description: string;
|
|
82
|
+
tags: string;
|
|
83
|
+
layout: TemplateListingRenderModes;
|
|
84
|
+
handleClick: () => void;
|
|
85
|
+
};
|
|
72
86
|
interface UserConfig {
|
|
73
87
|
availableFlowsLabel?: string;
|
|
74
88
|
myFlowsLabel?: string;
|
|
75
89
|
hideWebhookUrlScreen?: boolean;
|
|
90
|
+
customComponents?: {
|
|
91
|
+
flowCard?: (props: FlowCardProps) => VNode;
|
|
92
|
+
};
|
|
76
93
|
}
|
|
77
94
|
interface SDKConfig {
|
|
78
95
|
env?: "staging" | "production";
|
|
@@ -263,6 +280,7 @@ declare class IntegryJS {
|
|
|
263
280
|
private config;
|
|
264
281
|
private apiHandler;
|
|
265
282
|
eventEmitter: EventEmitter<IntegrySDKEvents>;
|
|
283
|
+
static html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<{}>;
|
|
266
284
|
static RenderModes: typeof TemplateFormRenderModes;
|
|
267
285
|
static Helpers: {
|
|
268
286
|
getAuthHash: (key: string, message: string) => Promise<string>;
|
|
@@ -309,4 +327,4 @@ declare class IntegryJS {
|
|
|
309
327
|
*/
|
|
310
328
|
destroy: () => void;
|
|
311
329
|
}
|
|
312
|
-
export { IntegryJS, Helpers };
|
|
330
|
+
export { IntegryJS, Helpers, html };
|