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

vant

Package Overview
Dependencies
Maintainers
7
Versions
566
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vant - npm Package Compare versions

Comparing version 4.6.4 to 4.6.5

3

es/dropdown-menu/DropdownMenu.d.ts

@@ -26,2 +26,3 @@ import { type InjectionKey, type ExtractPropTypes } from 'vue';

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
};

@@ -53,2 +54,3 @@ export type DropdownMenuProps = ExtractPropTypes<typeof dropdownMenuProps>;

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{

@@ -77,2 +79,3 @@ overlay: {

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
}>>, {

@@ -79,0 +82,0 @@ overlay: boolean;

@@ -25,2 +25,3 @@ import { DropdownMenuProps } from './DropdownMenu';

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{

@@ -49,2 +50,3 @@ overlay: {

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
}>>, {

@@ -51,0 +53,0 @@ overlay: boolean;

15

es/floating-panel/FloatingPanel.d.ts

@@ -19,6 +19,3 @@ import { type ExtractPropTypes } from 'vue';

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -47,6 +44,3 @@ type: BooleanConstructor;

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -73,6 +67,3 @@ type: BooleanConstructor;

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -79,0 +70,0 @@ type: BooleanConstructor;

@@ -18,6 +18,3 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue").DefineComponent<{

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -44,6 +41,3 @@ type: BooleanConstructor;

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -50,0 +44,0 @@ type: BooleanConstructor;

@@ -108,2 +108,2 @@ export * from "./action-bar";

export function install(app: any): void;
export const version: "4.6.4";
export const version: "4.6.5";

@@ -82,3 +82,3 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{

export type { ToastProps } from './Toast';
export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, ToastWordBreak, } from './types';
export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, ToastWordBreak, ToastWrapperInstance, } from './types';
declare module 'vue' {

@@ -85,0 +85,0 @@ interface GlobalComponents {

@@ -26,2 +26,3 @@ import { type InjectionKey, type ExtractPropTypes } from 'vue';

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
};

@@ -53,2 +54,3 @@ export type DropdownMenuProps = ExtractPropTypes<typeof dropdownMenuProps>;

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{

@@ -77,2 +79,3 @@ overlay: {

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
}>>, {

@@ -79,0 +82,0 @@ overlay: boolean;

@@ -39,3 +39,4 @@ var __defProp = Object.defineProperty;

closeOnClickOutside: import_utils.truthProp,
closeOnClickOverlay: import_utils.truthProp
closeOnClickOverlay: import_utils.truthProp,
swipeThreshold: import_utils.numericProp
};

@@ -59,2 +60,3 @@ const DROPDOWN_KEY = Symbol(name);

const opened = (0, import_vue2.computed)(() => children.some((item) => item.state.showWrapper));
const scrollable = (0, import_vue2.computed)(() => props.swipeThreshold && children.length > +props.swipeThreshold);
const barStyle = (0, import_vue2.computed)(() => {

@@ -116,3 +118,4 @@ if (opened.value && (0, import_utils.isDef)(props.zIndex)) {

"class": [bem("item", {
disabled
disabled,
grow: scrollable.value
}), {

@@ -161,3 +164,4 @@ [import_utils.HAPTICS_FEEDBACK]: !disabled

"class": bem("bar", {
opened: opened.value
opened: opened.value,
scrollable: scrollable.value
})

@@ -164,0 +168,0 @@ }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);

@@ -25,2 +25,3 @@ import { DropdownMenuProps } from './DropdownMenu';

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{

@@ -49,2 +50,3 @@ overlay: {

};
swipeThreshold: (NumberConstructor | StringConstructor)[];
}>>, {

@@ -51,0 +53,0 @@ overlay: boolean;

@@ -60,2 +60,3 @@ var __create = Object.create;

name,
inheritAttrs: false,
props: floatingBubbleProps,

@@ -65,3 +66,4 @@ emits: ["click", "update:offset", "offsetChange"],

slots,
emit
emit,
attrs
}) {

@@ -187,3 +189,3 @@ const rootRef = (0, import_vue2.ref)();

return () => {
const Content = (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", {
const Content = (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", (0, import_vue.mergeProps)({
"class": bem(),

@@ -196,3 +198,3 @@ "ref": rootRef,

"style": rootStyle.value
}, [slots.default ? slots.default() : (0, import_vue.createVNode)(import_icon.default, {
}, attrs), [slots.default ? slots.default() : (0, import_vue.createVNode)(import_icon.default, {
"name": props.icon,

@@ -199,0 +201,0 @@ "class": bem("icon")

@@ -19,6 +19,3 @@ import { type ExtractPropTypes } from 'vue';

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -47,6 +44,3 @@ type: BooleanConstructor;

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -73,6 +67,3 @@ type: BooleanConstructor;

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -79,0 +70,0 @@ type: BooleanConstructor;

@@ -36,7 +36,6 @@ var __defProp = Object.defineProperty;

contentDraggable: import_utils.truthProp,
lockScroll: import_utils.truthProp,
lockScroll: Boolean,
safeAreaInsetBottom: import_utils.truthProp
};
const [name, bem] = (0, import_utils.createNamespace)("floating-panel");
const DAMP = 0.2;
var stdin_default = (0, import_vue2.defineComponent)({

@@ -50,2 +49,3 @@ name,

}) {
const DAMP = 0.2;
const rootRef = (0, import_vue2.ref)();

@@ -83,2 +83,3 @@ const contentRef = (0, import_vue2.ref)();

let startY;
let maxScroll = -1;
const touch = (0, import_use_touch.useTouch)();

@@ -89,2 +90,3 @@ const onTouchstart = (e) => {

startY = -height.value;
maxScroll = -1;
};

@@ -96,9 +98,11 @@ const onTouchmove = (e) => {

if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
const {
scrollTop
} = contentRef.value;
maxScroll = Math.max(maxScroll, scrollTop);
if (!props.contentDraggable)
return;
if (-startY < boundary.value.max) {
if (e.cancelable)
e.preventDefault();
e.stopPropagation();
} else if (!(contentRef.value.scrollTop <= 0 && touch.deltaY.value > 0)) {
(0, import_utils.preventDefault)(e, true);
} else if (!(scrollTop <= 0 && touch.deltaY.value > 0) || maxScroll > 0) {
return;

@@ -111,2 +115,3 @@ }

const onTouchend = () => {
maxScroll = -1;
dragging.value = false;

@@ -113,0 +118,0 @@ height.value = (0, import_utils.closest)(anchors.value, height.value);

@@ -18,6 +18,3 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue").DefineComponent<{

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -44,6 +41,3 @@ type: BooleanConstructor;

};
lockScroll: {
type: BooleanConstructor;
default: true;
};
lockScroll: BooleanConstructor;
safeAreaInsetBottom: {

@@ -50,0 +44,0 @@ type: BooleanConstructor;

@@ -108,2 +108,2 @@ export * from "./action-bar";

export function install(app: any): void;
export const version: "4.6.4";
export const version: "4.6.5";

@@ -227,3 +227,3 @@ var __defProp = Object.defineProperty;

__reExport(stdin_exports, require("./watermark"), module.exports);
const version = "4.6.4";
const version = "4.6.5";
function install(app) {

@@ -230,0 +230,0 @@ const components = [

@@ -82,3 +82,3 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{

export type { ToastProps } from './Toast';
export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, ToastWordBreak, } from './types';
export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, ToastWordBreak, ToastWrapperInstance, } from './types';
declare module 'vue' {

@@ -85,0 +85,0 @@ interface GlobalComponents {

{
"name": "vant",
"version": "4.6.4",
"version": "4.6.5",
"description": "Mobile UI Components built on Vue",

@@ -52,5 +52,5 @@ "main": "lib/vant.cjs.js",

"@vant/area-data": "1.5.0",
"@vant/eslint-config": "4.0.0",
"@vant/cli": "6.2.0",
"@vant/icons": "2.0.1",
"@vant/eslint-config": "4.0.0"
"@vant/icons": "2.0.1"
},

@@ -57,0 +57,0 @@ "sideEffects": [

@@ -56,3 +56,3 @@ <p align="center">

Using `yarn` or `pnpm`:
Using `yarn`, `pnpm`, or `bun`:

@@ -65,2 +65,5 @@ ```bash

pnpm add vant
# with Bun
bun add vant
```

@@ -67,0 +70,0 @@

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

Sorry, the diff of this file is not supported yet

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

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

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

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