New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mappedin/viewer

Package Overview
Dependencies
Maintainers
2
Versions
465
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mappedin/viewer - npm Package Compare versions

Comparing version 0.33.1-c1dc37d.0 to 0.33.1

dist/types/src/components/directions/full-width-directions-button.d.ts

1

dist/types/src/components/async-image/index.d.ts

@@ -6,4 +6,5 @@ type TAsyncImageProps = {

role?: string;
onError?: () => void;
};
declare const AsyncImage: React.FC<TAsyncImageProps>;
export default AsyncImage;

@@ -7,4 +7,5 @@ import { PropsWithChildren } from 'react';

role?: string;
onClickOrPress?: () => void;
};
declare const CardItem: React.FC<PropsWithChildren<TCardItemProps>>;
export default CardItem;

@@ -1,4 +0,9 @@

type TLinkItemProps = {
type TLinkItemWithURLProps = {
url: string;
name?: string;
};
type TLinkItemWithPhoneNumberProps = {
phoneNumber: string;
};
type TLinkItemProps = (TLinkItemWithURLProps | TLinkItemWithPhoneNumberProps) & {
/**

@@ -5,0 +10,0 @@ * Optionally override the icon. Defaults to `link-2-16x16`.

2

dist/types/src/components/link-item/utils.d.ts
/**
* Process link to ensure it has a valid URL and name.
*/
export declare const useLinkItem: (url: string, name?: string) => {
export declare const useLinkItem: (urlOrPhoneNumber: string, name?: string) => {
url: string;
name: string;
} | null;
export declare const Default: () => import("react").JSX.Element;
export declare const NoHero: () => import("react").JSX.Element;
export declare const LongName: () => import("react").JSX.Element;
export declare const NoLogo: () => import("react").JSX.Element;
export declare const NoHeroNoLogo: () => import("react").JSX.Element;
export declare const NoDetails: () => import("react").JSX.Element;
export declare const LongContent: () => import("react").JSX.Element;

@@ -0,2 +1,4 @@

import { ComponentProps } from 'react';
import { TOnClickOrPressPayload } from '../button';
import SocialsItem from '../socials-item';
export declare const METADATA_CARD_WIDTH = 320;

@@ -19,4 +21,11 @@ export declare const METADATA_CARD_PADDING = 20;

/**
* Links to show. Links can optionally be named. Unnamed links will show up as the link URL.
* Main website URL.
*/
website?: {
url: string;
name?: string;
};
/**
* Other URLs to show. Links can optionally be named. Unnamed links will show up as the link URL.
*/
links?: {

@@ -27,2 +36,10 @@ url: string;

/**
* Phone number to show.
*/
phoneNumber?: string;
/**
* Social media URLs to show.
*/
socialUrls?: ComponentProps<typeof SocialsItem>['socialUrls'];
/**
* Image URLs to show in the hero gallery at the top of the card.

@@ -29,0 +46,0 @@ */

@@ -17,2 +17,2 @@ import { ParsedMVF } from '@mappedin/mvf';

*/
export declare const loadDataWithCustomAuth: (mapId: string, authUrl: string, dataUrl?: string, options?: TLoadDataOptions) => Promise<MapData>;
export declare const loadDataWithCustomAuth: (mapId: string, authUrl: string, authDataUrl?: string, options?: TLoadDataOptions) => Promise<MapData>;

@@ -71,4 +71,5 @@ import { TThemeOverride } from 'lib/types/theme';

/**
* Optional API endpoint to try and pull data from. Useful when trying to load staging data
* instead of production.
* Public data URL to fetch an MVF from without auth. Should be configured to either the
* production or staging MVF Azure function. This option will be ignored if `authUrl` is
* provided; use `authDataUrl` instead to change where a private MVF is fetched from.
*/

@@ -81,2 +82,8 @@ dataUrl?: string;

authUrl?: string;
/**
* Private data URL from which to fetch an MVF with auth. This option will be ignored if
* `authUrl` is not provided; use `authUrl` instead to change where a public MVF is fetched
* from. Defaults to `https://app.mappedin.com`.
*/
authDataUrl?: string;
} & TStartViewerCommonOptions;

@@ -83,0 +90,0 @@ export type MaybePromise<T> = T | Promise<T>;

@@ -76,2 +76,3 @@ import { StyleCollection } from '@mappedin/mvf';

large: number;
small: number;
};

@@ -78,0 +79,0 @@ fontSize: {

{
"name": "@mappedin/viewer",
"version": "0.33.1-c1dc37d.0",
"version": "0.33.1",
"type": "module",

@@ -59,2 +59,3 @@ "browser": "./dist/index.js",

"object-hash": "^3.0.0",
"phone": "^3.1.57",
"posthog-js": "1.181.0",

@@ -61,0 +62,0 @@ "react": "18.3.1",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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