@tef-novum/webview-bridge
Advanced tools
Comparing version 3.14.0 to 3.15.0
@@ -14,1 +14,2 @@ export { isWebViewBridgeAvailable, onNativeEvent, NativeEventHandler, setLogger, } from './src/post-message'; | ||
export { bottomSheet, bottomSheetSingleSelector } from './src/bottom-sheet'; | ||
export type { SheetListItem } from './src/bottom-sheet'; |
import { type SheetResponse } from './post-message'; | ||
declare type SheetListType = 'SINGLE_SELECTION'; | ||
declare type SheetListItem = { | ||
export declare type SheetListItem = Readonly<{ | ||
id: string; | ||
title?: string; | ||
description?: string; | ||
}; | ||
declare type SheetUIElement = { | ||
icon?: Readonly<{ | ||
url: string; | ||
urlDark?: string; | ||
}>; | ||
}>; | ||
declare type SheetUIElement = Readonly<{ | ||
id: string; | ||
@@ -15,4 +19,4 @@ type: 'LIST'; | ||
items: Array<SheetListItem>; | ||
}; | ||
declare type SheetUI = { | ||
}>; | ||
declare type SheetUI = Readonly<{ | ||
title?: string; | ||
@@ -22,3 +26,3 @@ subtitle?: string; | ||
content: Array<SheetUIElement>; | ||
}; | ||
}>; | ||
export declare const bottomSheet: (payload: SheetUI) => Promise<SheetResponse>; | ||
@@ -25,0 +29,0 @@ export declare const bottomSheetSingleSelector: ({ title, subtitle, description, selectedId, items, }: { |
{ | ||
"name": "@tef-novum/webview-bridge", | ||
"version": "3.14.0", | ||
"version": "3.15.0", | ||
"description": "JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/webview-bridge-cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
267261
5088