@stackable-labs/sdk-extension-contracts 1.39.1 → 1.41.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/index.d.ts +8 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -412,13 +412,16 @@ type CapabilityType = CapabilityCall['type'];
|
|
|
412
412
|
* Shared types for extension instances used by both host and admin.
|
|
413
413
|
*/
|
|
414
414
|
type Theme = 'light' | 'dark';
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
415
|
+
interface InstanceConfig {
|
|
416
|
+
settings?: {
|
|
417
|
+
theme?: Theme;
|
|
418
|
+
} & Record<string, unknown>;
|
|
419
|
+
secrets?: Record<string, unknown>;
|
|
420
|
+
}
|
|
418
421
|
interface InstanceOption {
|
|
419
422
|
id: string;
|
|
420
423
|
name: string;
|
|
421
|
-
|
|
424
|
+
config?: InstanceConfig;
|
|
422
425
|
}
|
|
423
426
|
|
|
424
427
|
/**
|
|
@@ -779,4 +782,4 @@ interface Order {
|
|
|
779
782
|
display_status?: OrderStatus;
|
|
780
783
|
}
|
|
781
784
|
|
|
782
|
-
export { ALLOWED_ICONS, type ActionInvokePayload, type Address, type AllowedIconName, type ApiError, type ApiRequest, type ApiResponse, CAPABILITY_PERMISSION_MAP, type CapabilityCall, type CapabilityRequest, type CapabilityResponse, type CapabilityType, type ContextData, type Customer, type DataField, type DataFieldType, type EncryptedPayload, type ExtensionManifest, type ExtensionRegistryEntry, type FetchRequest, type FetchRequestInit, type FetchResponse, type HostToSandboxMessage, type
|
|
785
|
+
export { ALLOWED_ICONS, type ActionInvokePayload, type Address, type AllowedIconName, type ApiError, type ApiRequest, type ApiResponse, CAPABILITY_PERMISSION_MAP, type CapabilityCall, type CapabilityRequest, type CapabilityResponse, type CapabilityType, type ContextData, type Customer, type DataField, type DataFieldType, type EncryptedPayload, type ExtensionManifest, type ExtensionRegistryEntry, type FetchRequest, type FetchRequestInit, type FetchResponse, type HostToSandboxMessage, type InstanceConfig, type InstanceOption, type InvokeAction, type MarketplaceExtension, type MessengerCommand, type NamedEntity, type Order, type OrderAction, type OrderItem, type OrderStatus, type OrderStatuses, PERMISSIONS, type Permission, type Price, type SandboxToHostMessage, type Shipment, type SurfaceContext, type SurfaceLifecycleMessage, type Target, type Theme, type ToastPayload, type UITag, type UITagCategory, UI_TAGS, UI_TAG_ATTRIBUTES, UI_TAG_ATTRIBUTE_VALUES, UI_TAG_CATEGORIES, UI_TAG_CHILDREN, UI_TAG_DEFINITIONS, type WidgetAction, tagToComponentName };
|