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

cupertino-pane

Package Overview
Dependencies
Maintainers
0
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cupertino-pane - npm Package Versions

1
11

1.2.32

Diff

roman-rr
published 1.2.3 •

Changelog

Source

[1.2.3] - 2021-01-22

Features

  • Added .calcFitHeight() method to re-calculate automatically height fitHeight: true, if this value was not proper calculated due DOM issues #123
  • Added maxFitHeight property to settings to define maximum possible automatically calculated height #122

Bug Fixes

  • Switched resize callback to orientationchange callback for device orientation changes. Fixed issues regarding resize and keyboards. #125
roman-rr
published 1.2.2 •

Changelog

Source

[1.2.2] - 2021-01-20

Features

  • Added fitHeight property for usage pane without breakpoints. On fitHeight: true, pane height will automatically calculated before present. Then height will be applied as top breakpoint height, bottom and middle breakpoint will be disabled. See Bulletin demo on example. #113
  • Added fitScreenHeight property. On fitScreenHeight: true, pane height will not be more than screen height.

Enhancements

  • Button close renamed to button destroy to avoid confuses. Option renamed buttonClose -> buttonDestroy #116
  • window.resize events and orientation changing now automatically reset breakpoints and pane to proper position. May be good using in pair with fitScreenHeight: true #119

Bug Fixes

  • Cordova keyboard hide if pane is hidden #112
roman-rr
published 1.2.1 •

roman-rr
published 1.2.0 •

Changelog

Source

[1.2.0] - 2020-12-15

BREAKING CHANGES

  • Improved .preventDismiss() method and gesture #87
const settings = {
  ...
  onWillDismiss: (e) => {
    if (e) {
      console.log(e.prevented);
    }
  }
}

const myPane = new CupertinoPane('.cupertino-pane', settings);
myPane.present({animate: true});
myPane.preventDismiss(true);

Bug Fixes

  • Fixed setBreakpoints() method for inversed pane #92
  • Fixed textarea overflow scroll. Pane disallowed from drag if scroll available and target element is textarea #88
  • Fixed horizontal scroll inside pane #102
  • Fixed keyboard issues on Android devices with cordova webview
  • Fixed drag event and stops laggy on drag pane with touchAngle option #102
  • Fixed onTransitionEnd callback with top position #105
  • Fixed currentBreak() detection for onDragEnd callbac #106
  • Fixed height calculation for overflow element #104
roman-rr
published 1.1.94 •

Changelog

Source

[1.1.94] - 2020-11-15

BREAKING CHANGES

  • Implemented auto-keyboard handler for cordova applications. Keyboard now will push pane for exact keyboard height. If you would like handle this part by yourself, set option handleKeyboard: false.

Extra

Features

  • Added preventDismiss() method. Using in pair with onWillDismiss() callback to prevent pane from destroy on custom conditions #82
const settings = {
  ...
  onWillDismiss: () => {
    if (disallowDismiss) {
      drawer.preventDismiss();
    }
  }
}
roman-rr
published 1.1.93 •

Changelog

Source

[1.1.93] - 2020-10-29

Extra

Features

  • Added fastSwipeClose for close pane with fast drag to bottom direction #78
  • Added fastSwipeSensivity property to regulate how long should a swipe event being for automaticaly swipe into next point #78
  • Added pushYOffset property to realize Z-Deminsion Stack
roman-rr
published 1.1.92 •

Changelog

Source

1.1.92 - 2020-10-17

Features

  • Added moveToHeight(val: **number**) method. Allow to move pane into exact height position. #73

Bug Fixes

  • Removed excesive padding from inversed top-to-bottom overscrolls. #75
roman-rr
published 1.1.91 •

roman-rr
published 1.1.9 •

Changelog

Source

1.1.9 - 2020-10-10

Features

  • Added inverse property which allows to use top-to-bottom direction. #58
let settings: CupertinoSettings = { 
  inverse: true
};
  • Added .setDarkMode({enable: true}) method, to helps maintain color scheme after pane initialization #68
  • Added .setBreakpoints(breakpoints: PaneBreaks) method. Method updates breakpoints configuration for rendered Pane. #69
  • Improved lowerThanBottom configuration and become accessable in default mode

Bug Fixes

  • Fixed Commonjs bundle. No more line required on import:
<script>var exports = {"__esModule": true};</script>
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