@integry/sdk 3.2.5-beta.3 → 3.2.5-beta.4

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.
@@ -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";
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";
4
4
  type IntegrySDKEventPayloads = {
5
5
  ready: {
6
6
  deploymentId: number;
@@ -75,6 +75,9 @@ type IntegrySDKEventPayloads = {
75
75
  "did-begin-remove-authorization": {
76
76
  authorizationId: number;
77
77
  };
78
+ "did-click-close-button": {
79
+ isCloseClicked: boolean;
80
+ };
78
81
  };
79
82
  type EventCallback<P extends IntegrySDKEventType> = (
80
83
  // @ts-expect-error P can index IntegrySDKEventPayloads
@@ -96,6 +99,7 @@ type IntegrySDKEvents = {
96
99
  "did-select-authorization": EventCallback<"did-select-authorization">;
97
100
  ready: EventCallback<"ready">;
98
101
  "should-load-flow": EventCallback<"should-load-flow">;
102
+ "did-click-close-button": EventCallback<"did-click-close-button">;
99
103
  };
100
104
  declare enum TemplateFormRenderModes {
101
105
  MODAL = "MODAL",
@@ -133,6 +137,7 @@ interface UserConfig {
133
137
  flowCard?: (props: FlowCardProps) => VNode;
134
138
  };
135
139
  autoRedirectToMyFlows?: boolean;
140
+ isReadOnly?: boolean;
136
141
  }
137
142
  interface SDKConfig {
138
143
  env?: "staging" | "production";