Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tef-novum/webview-bridge

Package Overview
Dependencies
Maintainers
7
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tef-novum/webview-bridge - npm Package Compare versions

Comparing version 3.26.1 to 3.27.0

2

dist/index.d.ts

@@ -5,3 +5,3 @@ export { isWebViewBridgeAvailable, onNativeEvent, NativeEventHandler, setLogger, } from './src/post-message';

export { attachToEmail, share, setWebViewTitle, updateNavigationBar, notifyPageLoaded, notifyBridgeReady, getRemoteConfig, isABTestingAvailable, reportStatus, fetch, checkPermissionStatus, getAppMetadata, setActionBehavior, getTopazToken, onNavigationBarIconClicked, } from './src/utils';
export type { ShareOptions } from './src/utils';
export type { ShareOptions, NavigationBarIcon } from './src/utils';
export { createCalendarEvent } from './src/calendar';

@@ -8,0 +8,0 @@ export { requestContact, fetchContactsByPhone, fetchPhoneNumbers, updatePhoneNumbers, } from './src/contacts';

import { type SheetResponse } from './post-message';
declare type SheetIcon = Readonly<{
url: string;
urlDark?: string;
type?: 'regular' | 'small';
}>;
declare type InfoIcon = Readonly<{
url: string;
urlDark?: string;
type: 'regular' | 'small';
}> | Readonly<{
type: 'bullet';
}>;
export declare type SheetRowItem = Readonly<{

@@ -18,3 +6,7 @@ id: string;

description?: string;
icon?: SheetIcon;
icon?: Readonly<{
url: string;
urlDark?: string;
size?: 'large' | 'small';
}>;
}>;

@@ -25,4 +17,14 @@ export declare type SheetActionItem = Readonly<{

style?: 'normal' | 'destructive';
icon?: SheetIcon;
icon?: Readonly<{
url: string;
urlDark?: string;
}>;
}>;
declare type InfoIcon = Readonly<{
url: string;
urlDark?: string;
type: 'regular' | 'small';
}> | Readonly<{
type: 'bullet';
}>;
export declare type SheetInfoItem = Readonly<{

@@ -55,2 +57,15 @@ id: string;

items: Array<SheetInfoItem>;
}> | Readonly<{
id: string;
type: 'BOTTOM_ACTIONS';
button: {
text: string;
};
secondaryButton?: {
text: string;
};
link?: {
text: string;
withChevron?: boolean;
};
}>;

@@ -95,2 +110,19 @@ declare type SheetUI = Readonly<{

}) => Promise<void>;
export declare const bottomSheetActions: ({ title, subtitle, description, button, secondaryButton, link, }: {
title?: string | undefined;
subtitle?: string | undefined;
description?: string | undefined;
button: {
text: string;
};
secondaryButton?: {
text: string;
} | undefined;
link?: {
text: string;
withChevron?: boolean | undefined;
} | undefined;
}) => Promise<{
action: 'PRIMARY' | 'SECONDARY' | 'LINK' | 'DISMISS';
}>;
export {};

@@ -17,3 +17,3 @@ import { NativeAppResponsePayload } from './post-message';

export declare const share: (options: ShareOptions) => Promise<void>;
export declare type NavigationBarIcon = {
export declare type NavigationBarIcon = Readonly<{
/** Identifier. The native side will notify the WebView when the icon is clicked using this id*/

@@ -61,7 +61,7 @@ id: string;

trackingProperties?: Record<string, string>;
};
}>;
/**
* Related doc: https://confluence.tid.es/pages/viewpage.action?spaceKey=CTO&title=%5BAPPS%5D+Shared+Spec%3A+Top+Bar+customization#id-[APPS]SharedSpec:TopBarcustomization-Tracking
*/
export declare const updateNavigationBar: (options: {
export declare const updateNavigationBar: (options: Readonly<{
title?: string;

@@ -81,3 +81,3 @@ expandedTitle?: string;

resetToDefaultState?: boolean;
}) => Promise<void>;
}>) => Promise<void>;
/**

@@ -84,0 +84,0 @@ * Returns the unsubscribe function. Should be called when the component is unmounted.

{
"name": "@tef-novum/webview-bridge",
"version": "3.26.1",
"version": "3.27.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",

@@ -989,2 +989,23 @@ <p align="center">

For a bottom sheet with ButtonPrimary/ButtonSecondary/ButtonLink use
`bottomSheetActions` (in Novum app since 14.8 version):
```ts
bottomSheetActions = ({
title?: string;
subtitle?: string;
description?: string;
button: {
text: string;
};
secondaryButton?: {
text: string;
};
link?: {
text: string;
withChevron?: boolean;
};
}) => Promise<{action: 'PRIMARY' | 'SECONDARY' | 'LINK' | 'DISMISS'}>
```
#### Example:

@@ -991,0 +1012,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc