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

guide-modal-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guide-modal-sdk - npm Package Compare versions

Comparing version 0.0.1 to 1.0.1

2

package.json
{
"name": "guide-modal-sdk",
"version": "0.0.1",
"version": "1.0.1",
"description": "The embedded js for guide modal",

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

@@ -192,3 +192,40 @@ # `guide-modal`

### 指引内容抽屉
引入js后,会在window下挂载Drawer类,使用方法:
```js
const drawer = new Drawer({
width,
afterVisibleChange,
stepCode,
sectionCode,
targetOffset,
});
```
方法签名如下:
```js
/**
* @param{number} width: 抽屉组件宽度,默认为884
* @param{function} afterVisibleChange: 弹窗动画完成回调函数
* @param{string} stepCode: 二级步骤id
* @param{string} sectionCode: // 锚点默认选中的章节id
* @param{number} targetOffset: // 锚点距离窗口顶部滚动偏移量,默认值为0
* @return{undefined}
**/
interface DrawerConfig {
width?: number;
afterVisibleChange?: () => void;
stepCode: string | number;
sectionCode?: string | number;
targetOffset?: number;
}
declare var DrawerType: (config: DrawerConfig) => () => void;
```
## changelog

@@ -195,0 +232,0 @@ - v0.0.0: 弹窗新增最大高度设置,超出显示滚动条; 添加通知多个接口;

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