@integry/sdk 3.7.1 → 3.7.2
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 +11 -2
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +10 -1
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.csm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html } from 'htm/preact';
|
|
2
2
|
import { VNode } from "preact";
|
|
3
|
-
type IntegrySDKEventType = "authorizations" | "did-add-authorization" | "did-begin-remove-authorization" | "did-change-step" | "did-fail-authorization-verification" | "did-load-flow" | "did-load-flows" | "did-load-integration" | "did-load-integrations" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-delete-integration" | "did-select-authorization" | "ready" | "should-load-flow" | "did-click-close-button";
|
|
3
|
+
type IntegrySDKEventType = "authorizations" | "did-add-authorization" | "did-begin-remove-authorization" | "did-change-step" | "did-fail-authorization-verification" | "did-load-flow" | "did-load-flows" | "did-load-integration" | "did-load-integrations" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-delete-integration" | "did-select-authorization" | "ready" | "should-load-flow" | "did-click-close-button" | "did-app-load";
|
|
4
4
|
type IntegrySDKEventPayloads = {
|
|
5
5
|
ready: {
|
|
6
6
|
deploymentId: number;
|
|
@@ -84,6 +84,12 @@ type IntegrySDKEventPayloads = {
|
|
|
84
84
|
"did-click-close-button": {
|
|
85
85
|
isCloseClicked: boolean;
|
|
86
86
|
};
|
|
87
|
+
"did-app-load": {
|
|
88
|
+
appName: string;
|
|
89
|
+
appId: number;
|
|
90
|
+
appLogoUrl: string;
|
|
91
|
+
authorizationId: number | null;
|
|
92
|
+
};
|
|
87
93
|
};
|
|
88
94
|
type EventCallback<P extends IntegrySDKEventType> = (
|
|
89
95
|
// @ts-expect-error P can index IntegrySDKEventPayloads
|
|
@@ -106,6 +112,7 @@ type IntegrySDKEvents = {
|
|
|
106
112
|
ready: EventCallback<"ready">;
|
|
107
113
|
"should-load-flow": EventCallback<"should-load-flow">;
|
|
108
114
|
"did-click-close-button": EventCallback<"did-click-close-button">;
|
|
115
|
+
"did-app-load": EventCallback<"did-app-load">;
|
|
109
116
|
};
|
|
110
117
|
declare enum TemplateFormRenderModes {
|
|
111
118
|
MODAL = "MODAL",
|
|
@@ -346,6 +353,7 @@ interface InitConfig {
|
|
|
346
353
|
showApps?: boolean;
|
|
347
354
|
showTemplates?: boolean;
|
|
348
355
|
skipOnDemand?: boolean;
|
|
356
|
+
skipAccountConnectionOnLoad?: boolean;
|
|
349
357
|
}
|
|
350
358
|
interface MarketplaceConfig {
|
|
351
359
|
containerId: string;
|
|
@@ -420,6 +428,7 @@ declare class IntegryJS {
|
|
|
420
428
|
static SDK_VERSION: string;
|
|
421
429
|
private config;
|
|
422
430
|
private apiHandler;
|
|
431
|
+
private initConfig;
|
|
423
432
|
eventEmitter: EventEmitter<IntegrySDKEvents>;
|
|
424
433
|
static html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<{}>;
|
|
425
434
|
static RenderModes: typeof TemplateFormRenderModes;
|
|
@@ -492,7 +501,7 @@ declare class IntegryJS {
|
|
|
492
501
|
renderMarketplace: (marketplaceConfig: MarketplaceConfig) => void;
|
|
493
502
|
renderAppFlows: (appFlowConfig: InitConfig) => void;
|
|
494
503
|
verifyAuthConfig: () => Promise<{
|
|
495
|
-
config_verified: boolean;
|
|
504
|
+
config_verified: boolean; /** REMOVED THIS TO SUPPRESS x-integry-layout dom attribute to avoid grid */
|
|
496
505
|
} | null>;
|
|
497
506
|
/**
|
|
498
507
|
* Destroy SDK instance and cleanup store
|