@useparagon/connect 1.0.35-experimental.16 → 1.0.35-experimental.18

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.
@@ -34,7 +34,9 @@ export declare enum SidebarInputType {
34
34
  ComboInput = "COMBO_INPUT",
35
35
  Password = "PASSWORD",
36
36
  Switch = "SWITCH",
37
- DynamicComboInput = "DYNAMIC_COMBO_INPUT"
37
+ DynamicComboInput = "DYNAMIC_COMBO_INPUT",
38
+ CopyableButtonInput = "COPYABLE_BUTTON_INPUT",
39
+ Permission = "PERMISSION"
38
40
  }
39
41
  interface BaseInput {
40
42
  id: string;
@@ -120,6 +122,27 @@ export interface FieldMapperInput extends BaseInput {
120
122
  label: string;
121
123
  }[];
122
124
  }
125
+ export interface CopyableButtonInput extends BaseInput {
126
+ type: SidebarInputType.CopyableButtonInput;
127
+ }
128
+ export type ScopeValue = {
129
+ name: string;
130
+ description: string;
131
+ label?: string;
132
+ required?: boolean;
133
+ };
134
+ export interface PermissionInput extends BaseInput {
135
+ type: SidebarInputType.Permission;
136
+ requiredScopes: string[];
137
+ scopes: {
138
+ values: ScopeValue[];
139
+ };
140
+ }
141
+ export interface SwitchInput extends BaseInput {
142
+ type: SidebarInputType.Switch;
143
+ toolTipText?: string;
144
+ titleText?: string;
145
+ }
123
146
  export interface IntegrationConnectInput extends BaseInput {
124
147
  type: SidebarInputType.ValueText | SidebarInputType.Password | SidebarInputType.DynamicEnum | SidebarInputType.ComboInput | SidebarInputType.Enum | SidebarInputType.Switch | SidebarInputType.ValueTextArea;
125
148
  inputType?: string;
@@ -1,7 +1,7 @@
1
1
  import { ConnectCredentialProviderData, CredentialStatus, IConnectCredential } from '../entities/connectCredential.interface';
2
2
  import { ConnectCredentialConfigMeta, IConnectCredentialConfig } from '../entities/connectCredentialConfig.interface';
3
3
  import { PersonaMeta } from '../entities/persona.interface';
4
- import { AccountType, BooleanInput, ComboInput, CustomDropdownInput, DataSource, DynamicComboInput, DynamicEnumInput, EmailInput, FieldMapperInput, IntegrationConnectInput, NumberInput, PasswordInput, SidebarInputType, URLInput, ValueTextInput } from './action';
4
+ import { AccountType, BooleanInput, ComboInput, CopyableButtonInput, CustomDropdownInput, DataSource, DynamicComboInput, DynamicEnumInput, EmailInput, FieldMapperInput, IntegrationConnectInput, NumberInput, PasswordInput, PermissionInput, SidebarInputType, SwitchInput, URLInput, ValueTextInput } from './action';
5
5
  import { OrConditions } from './resolvers';
6
6
  import { CredentialConfigOptions } from './sdk';
7
7
  export interface SDKConnectCredentialConfig {
@@ -88,9 +88,9 @@ type IntegrationSharedMeta = {
88
88
  */
89
89
  inputs?: SerializedConnectInput[];
90
90
  };
91
- declare const SupportedConnectInputTypes: readonly [SidebarInputType.ValueText, SidebarInputType.DynamicEnum, SidebarInputType.Enum, SidebarInputType.Number, SidebarInputType.Email, SidebarInputType.URL, SidebarInputType.FieldMapper, SidebarInputType.BooleanInput, SidebarInputType.ComboInput, SidebarInputType.Password, SidebarInputType.Switch, SidebarInputType.ValueTextArea, SidebarInputType.CustomDropdown, SidebarInputType.DynamicComboInput, SidebarInputType.FieldMapper];
91
+ declare const SupportedConnectInputTypes: readonly [SidebarInputType.ValueText, SidebarInputType.DynamicEnum, SidebarInputType.Enum, SidebarInputType.Number, SidebarInputType.Email, SidebarInputType.URL, SidebarInputType.FieldMapper, SidebarInputType.BooleanInput, SidebarInputType.ComboInput, SidebarInputType.Password, SidebarInputType.Switch, SidebarInputType.ValueTextArea, SidebarInputType.CustomDropdown, SidebarInputType.DynamicComboInput, SidebarInputType.FieldMapper, SidebarInputType.CopyableButtonInput, SidebarInputType.Permission];
92
92
  export type SupportedConnectInputType = (typeof SupportedConnectInputTypes)[number];
93
- export type SidebarInput = BooleanInput | ValueTextInput | NumberInput | EmailInput | URLInput | PasswordInput | CustomDropdownInput | DynamicEnumInput | ComboInput | DynamicComboInput | FieldMapperInput;
93
+ export type SidebarInput = BooleanInput | SwitchInput | ValueTextInput | NumberInput | EmailInput | URLInput | PasswordInput | CustomDropdownInput | DynamicEnumInput | ComboInput | DynamicComboInput | FieldMapperInput | CopyableButtonInput | PermissionInput;
94
94
  type SupportedConnectInput<T extends SidebarInput = SidebarInput> = Extract<T, {
95
95
  type: SupportedConnectInputType;
96
96
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "1.0.35-experimental.16",
3
+ "version": "1.0.35-experimental.18",
4
4
  "description": "Embed integrations into your app with the Paragon SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",