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

@byjohann/ui

Package Overview
Dependencies
Maintainers
0
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byjohann/ui - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

13

dist/mapbox/components/context.d.ts
import type { InjectionKey, ShallowRef } from "vue";
import type { Event, Map, MapEvent } from "mapbox-gl";
type Listener = (arg1: any) => void;
import type { Map } from "mapbox-gl";
export type MapboxImage = HTMLImageElement | ImageBitmap | ImageData | {

@@ -17,13 +16,3 @@ width: number;

}
export declare class Evented {
on(type: MapEvent, listener: Listener): this;
off(type: MapEvent, listener: Listener): this;
once(type: MapEvent): Promise<Event>;
once(type: MapEvent, listener: Listener): this;
fire(event: Event | string, properties?: object): this;
listens(type: string): boolean;
setEventedParent(parent?: Evented, data?: unknown | (() => unknown)): this;
}
export declare const mapCtxKey: InjectionKey<ShallowRef<Map | undefined>>;
export declare function getClusterIndex(): number;
export {};

19

dist/mapbox/composables/useEventsBinding.d.ts
import type { Ref } from "vue";
import type { Evented } from "../components/context";
import type { Marker, Map as _Map } from "mapbox-gl";
/**
* Map a Mapbox element's events to a Vue component
*/
export declare function useEventsBinding<T extends Evented>(
/** The emit function for the current component */
emitFn: (event: string, ...args: any[]) => void,
export declare function useEventsBinding<T extends _Map | Marker>(
/** The element bound to the component */
element: Ref<T | undefined>,
/** The events to map */
events?: string[],
/** The layer on which the events are delegated */
layerId?: string): void;
element: Ref<T | undefined>, { emit, events, layerId, }: {
/** The emit function for the current component */
emit: (event: string, ...args: any[]) => void;
/** The events to map */
events?: string[];
/** The layer on which the events are delegated */
layerId?: string;
}): void;
import type { Ref } from "vue";
import type { Evented } from "../components/context";
import type { Marker, Map as _Map } from "mapbox-gl";
/**
* Map a Mapbox element's events to the given Vue element
*/
export declare function usePropsBinding<T extends Evented>(props: Record<string, unknown>, element: Ref<T | undefined>): void;
export declare function usePropsBinding<T extends _Map | Marker>(props: Record<string, unknown>, element: Ref<T | undefined>): void;
{
"name": "@byjohann/ui",
"type": "module",
"version": "0.7.1",
"version": "0.7.2",
"packageManager": "pnpm@9.5.0",

@@ -6,0 +6,0 @@ "description": "A collection of Vue.js components for my projects",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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