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

@rc-component/tour

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/tour - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

6

es/hooks/useClosable.d.ts

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

/// <reference types="react" />
import * as React from 'react';
import type { TourProps } from '../interface';
import type { TourStepInfo } from '../TourStep';
export declare function useClosable(prefixCls: string, stepClosable: TourStepInfo['closable'], stepCloseIcon: TourStepInfo['closeIcon'], closable: TourProps['closable'], closeIcon: TourProps['closeIcon']): {
closeIcon?: import("react").ReactNode;
} & import("react").AriaAttributes;
closeIcon?: React.ReactNode;
} & React.AriaAttributes;
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _typeof from "@babel/runtime/helpers/esm/typeof";
import { useMemo } from 'react';
import * as React from 'react';
function isConfigObj(closable) {

@@ -31,3 +31,3 @@ return closable !== null && _typeof(closable) === 'object';

export function useClosable(prefixCls, stepClosable, stepCloseIcon, closable, closeIcon) {
return useMemo(function () {
return React.useMemo(function () {
var stepClosableConfig = getClosableConfig(prefixCls, stepClosable, stepCloseIcon, false);

@@ -34,0 +34,0 @@ var rootClosableConfig = getClosableConfig(prefixCls, closable, closeIcon, true);

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

/// <reference types="react" />
import * as React from 'react';
import type { TourProps } from '../interface';
import type { TourStepInfo } from '../TourStep';
export declare function useClosable(prefixCls: string, stepClosable: TourStepInfo['closable'], stepCloseIcon: TourStepInfo['closeIcon'], closable: TourProps['closable'], closeIcon: TourProps['closeIcon']): {
closeIcon?: import("react").ReactNode;
} & import("react").AriaAttributes;
closeIcon?: React.ReactNode;
} & React.AriaAttributes;
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;

@@ -10,3 +11,3 @@ Object.defineProperty(exports, "__esModule", {

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _react = require("react");
var React = _interopRequireWildcard(require("react"));
function isConfigObj(closable) {

@@ -39,3 +40,3 @@ return closable !== null && (0, _typeof2.default)(closable) === 'object';

function useClosable(prefixCls, stepClosable, stepCloseIcon, closable, closeIcon) {
return (0, _react.useMemo)(function () {
return React.useMemo(function () {
var stepClosableConfig = getClosableConfig(prefixCls, stepClosable, stepCloseIcon, false);

@@ -42,0 +43,0 @@ var rootClosableConfig = getClosableConfig(prefixCls, closable, closeIcon, true);

{
"name": "@rc-component/tour",
"version": "1.13.0",
"version": "1.13.1",
"description": "React tour Component",

@@ -5,0 +5,0 @@ "keywords": [

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