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

clxx

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clxx - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

4

build/Dialog/style.d.ts
import { Keyframes } from "@emotion/serialize";
export declare const maskHide: Keyframes;
export declare type DialogType = "center" | "pullUp" | "pullDown" | "pullLeft" | "pullRight";
export declare type AnimationStatus = "show" | "hide";
export type DialogType = "center" | "pullUp" | "pullDown" | "pullLeft" | "pullRight";
export type AnimationStatus = "show" | "hide";
export declare function getAnimation(type: DialogType, status: AnimationStatus): {

@@ -6,0 +6,0 @@ keyframes: Keyframes;

/// <reference types="react" />
import * as CSS from "csstype";
import * as CSS from 'csstype';
export interface FlexProps extends React.HTMLProps<HTMLDivElement> {

@@ -4,0 +4,0 @@ children?: React.ReactNode;

@@ -14,5 +14,5 @@ var __rest = (this && this.__rest) || function (s, e) {

export function Flex(props) {
const { children, alignItems = "center", alignContent, justifyContent, flexFlow, flexWrap, flexDirection } = props, extra = __rest(props, ["children", "alignItems", "alignContent", "justifyContent", "flexFlow", "flexWrap", "flexDirection"]);
const { children, alignItems = 'center', alignContent, justifyContent, flexFlow, flexWrap, flexDirection } = props, extra = __rest(props, ["children", "alignItems", "alignContent", "justifyContent", "flexFlow", "flexWrap", "flexDirection"]);
return (_jsx("div", Object.assign({ css: {
display: "flex",
display: 'flex',
alignItems,

@@ -19,0 +19,0 @@ alignContent,

import dayjs from 'dayjs';
export declare type AgoValue = {
export type AgoValue = {
num: number;

@@ -4,0 +4,0 @@ unit: 'y' | 'm' | 'd' | 'h' | 'i' | 's';

@@ -1,6 +0,6 @@

export declare type CountdownValueIndex = "d" | "h" | "i" | "s";
export declare type CountdownValue = {
export type CountdownValueIndex = "d" | "h" | "i" | "s";
export type CountdownValue = {
[key in CountdownValueIndex]?: number;
};
export declare type UpdateCallback = (value: CountdownValue) => void;
export type UpdateCallback = (value: CountdownValue) => void;
export interface CountdownOption {

@@ -7,0 +7,0 @@ remain?: number | string;

@@ -5,8 +5,8 @@ import React from 'react';

import { ContextValue } from '../context';
export declare type RouteMethod = 'browser' | 'hash' | 'memory';
export declare type AwaitValue<T> = T | Promise<T>;
export type RouteMethod = 'browser' | 'hash' | 'memory';
export type AwaitValue<T> = T | Promise<T>;
export interface CreateAppOption extends Omit<ContainerProps, 'children'>, ContextValue {
onBeforeRenderPage?: (pathname?: string) => AwaitValue<void>;
onAfterRenderPage?: (pathname?: string) => AwaitValue<void>;
renderLoading?: (pathname?: string) => AwaitValue<React.ReactNode>;
onLoadingPage?: (pathname?: string) => AwaitValue<React.ReactNode>;
renderPage?: (pathname?: string) => AwaitValue<React.ReactNode>;

@@ -13,0 +13,0 @@ routeMethod?: RouteMethod;

@@ -54,3 +54,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

]);
const { onBeforeRenderPage, onAfterRenderPage, renderLoading, renderPage } = option;
const { onBeforeRenderPage, onAfterRenderPage, onLoadingPage, renderPage } = option;
// 设置上下文属性

@@ -74,4 +74,4 @@ setContextValue(context);

// 如果有loading,要先显示loading
if (typeof renderLoading === 'function') {
setPage(yield (renderLoading === null || renderLoading === void 0 ? void 0 : renderLoading(pathname)));
if (typeof onLoadingPage === 'function') {
setPage(yield (onLoadingPage === null || onLoadingPage === void 0 ? void 0 : onLoadingPage(pathname)));
}

@@ -78,0 +78,0 @@ // 加载页面之前可能会存在的逻辑

@@ -10,4 +10,4 @@ /**

*/
export declare type SendType = "normal" | "text" | "form" | "json" | "blob" | "params" | "buffer";
export declare type SendDataType = BodyInit | Record<string, any>;
export type SendType = "normal" | "text" | "form" | "json" | "blob" | "params" | "buffer";
export type SendDataType = BodyInit | Record<string, any>;
/**

@@ -24,4 +24,4 @@ * 请求对象参数

}
export declare type BuildUrlOption = Pick<RequestOption, "url" | "data" | "disableUrlCache" | "transmitPageParam" | "sendType">;
export declare type StandardAjaxResult = {
export type BuildUrlOption = Pick<RequestOption, "url" | "data" | "disableUrlCache" | "transmitPageParam" | "sendType">;
export type StandardAjaxResult = {
code: number;

@@ -28,0 +28,0 @@ message?: string;

{
"name": "clxx",
"version": "2.0.7",
"version": "2.0.8",
"description": "Basic JS library for mobile devices",

@@ -36,3 +36,3 @@ "main": "./build/index.js",

"dependencies": {
"@emotion/react": "^11.10.0",
"@emotion/react": "^11.10.6",
"dayjs": "^1.11.5",

@@ -42,13 +42,11 @@ "history": "^5.3.0",

"react": "^18.2.0",
"react-dom": "^18.2.0",
"swiper": "^8.3.2"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/lodash": "^4.14.182",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/swiper": "^6.0.0",
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"csstype": "^3.1.0",
"typescript": "^4.7.4"
"typescript": "^4.9.5"
}
}
# v2.0.0
Completely reconstructed,Documentation coming soon...
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