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

overlayscrollbars-vue

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

overlayscrollbars-vue - npm Package Compare versions

Comparing version 0.5.6 to 0.5.7

overlayscrollbars-vue.cjs

6

CHANGELOG.md
# Changelog
## 0.5.7
### Improvements
- Adapt the `exports` field in the `package.json` for correct `commonjs` and `module` handling.
## 0.5.6

@@ -4,0 +10,0 @@

2

overlayscrollbars-vue.cjs.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("overlayscrollbars"),_=()=>{if(typeof window>"u"){const o=()=>{};return[o,o]}let c,r;const l=window,n=typeof l.requestIdleCallback=="function",s=l.requestAnimationFrame,a=l.cancelAnimationFrame,u=n?l.requestIdleCallback:s,f=n?l.cancelIdleCallback:a,t=()=>{f(c),a(r)};return[(o,v)=>{t(),c=u(n?()=>{t(),r=s(o)}:o,typeof v=="object"?v:{timeout:2233})},t]},O=c=>{let r=null,l,n,s;const a=e.shallowRef(c||{}),[u,f]=_();return e.watch(()=>{var t;return e.unref((t=a.value)==null?void 0:t.defer)},t=>{s=t},{deep:!0,immediate:!0}),e.watch(()=>{var t;return e.unref((t=a.value)==null?void 0:t.options)},t=>{l=t,y.OverlayScrollbars.valid(r)&&r.options(l||{},!0)},{deep:!0,immediate:!0}),e.watch(()=>{var t;return e.unref((t=a.value)==null?void 0:t.events)},t=>{n=t,y.OverlayScrollbars.valid(r)&&r.on(n||{},!0)},{deep:!0,immediate:!0}),e.onUnmounted(()=>{f(),r==null||r.destroy()}),[t=>{if(y.OverlayScrollbars.valid(r))return r;const o=()=>r=y.OverlayScrollbars(t,l||{},n||{});s?u(o,s):o()},()=>r]},R=e.defineComponent({__name:"OverlayScrollbarsComponent",props:{element:{type:String,default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(c,{expose:r,emit:l}){const n=c,s={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:a,options:u,events:f,defer:t}=e.toRefs(n),o=e.shallowRef(null),v=e.shallowRef(null),w=e.ref(),[h,S]=O({options:u,events:w,defer:t});return r({osInstance:S,getElement:()=>o.value}),e.watchPostEffect(p=>{const{value:m}=o,{value:i}=v;m&&i&&(h({target:m,elements:{viewport:i,content:i}}),p(()=>{var d;return(d=S())==null?void 0:d.destroy()}))}),e.watch(()=>e.unref(f),p=>{const m=p||{};w.value=Object.keys(s).reduce((i,d)=>{const b=m[d];return i[d]=[(...I)=>l(s[d],...I),...(Array.isArray(b)?b:[b]).filter(Boolean)],i},{})},{deep:!0,immediate:!0}),(p,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:o},{default:e.withCtx(()=>[e.createElementVNode("div",{"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:v},[e.renderSlot(p.$slots,"default")],512)]),_:3},512))}});exports.OverlayScrollbarsComponent=R;exports.useOverlayScrollbars=O;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("overlayscrollbars"),R=()=>{if(typeof window>"u"){const o=()=>{};return[o,o]}let c,r;const l=window,n=typeof l.requestIdleCallback=="function",s=l.requestAnimationFrame,a=l.cancelAnimationFrame,u=n?l.requestIdleCallback:s,f=n?l.cancelIdleCallback:a,t=()=>{f(c),a(r)};return[(o,p)=>{t(),c=u(n?()=>{t(),r=s(o)}:o,typeof p=="object"?p:{timeout:2233})},t]},O=c=>{let r=null,l,n,s;const a=e.shallowRef(c||{}),[u,f]=R();return e.watch(()=>{var t;return e.unref((t=a.value)==null?void 0:t.defer)},t=>{s=t},{deep:!0,immediate:!0}),e.watch(()=>{var t;return e.unref((t=a.value)==null?void 0:t.options)},t=>{l=t,y.OverlayScrollbars.valid(r)&&r.options(l||{},!0)},{deep:!0,immediate:!0}),e.watch(()=>{var t;return e.unref((t=a.value)==null?void 0:t.events)},t=>{n=t,y.OverlayScrollbars.valid(r)&&r.on(n||{},!0)},{deep:!0,immediate:!0}),e.onUnmounted(()=>{f(),r==null||r.destroy()}),[t=>{if(y.OverlayScrollbars.valid(r))return r;const o=()=>r=y.OverlayScrollbars(t,l||{},n||{});s?u(o,s):o()},()=>r]},C=e.defineComponent({__name:"OverlayScrollbarsComponent",props:{element:{type:String,default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(c,{expose:r,emit:l}){const n=c,s={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:a,options:u,events:f,defer:t}=e.toRefs(n),o=e.shallowRef(null),p=e.shallowRef(null),w=e.ref(),[h,S]=O({options:u,events:w,defer:t});return r({osInstance:S,getElement:()=>o.value}),e.watchPostEffect(v=>{const{value:m}=o,{value:i}=p;m&&i&&(h({target:m,elements:{viewport:i,content:i}}),v(()=>{var d;return(d=S())==null?void 0:d.destroy()}))}),e.watch(()=>e.unref(f),v=>{const m=v||{};w.value=Object.keys(s).reduce((i,d)=>{const b=m[d];return i[d]=[(...I)=>l(s[d],...I),...(Array.isArray(b)?b:[b]).filter(Boolean)],i},{})},{deep:!0,immediate:!0}),(v,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:o},{default:e.withCtx(()=>[e.createElementVNode("div",{"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:p},[e.renderSlot(v.$slots,"default")],512)]),_:3},512))}});exports.OverlayScrollbarsComponent=C;exports.useOverlayScrollbars=O;
//# sourceMappingURL=overlayscrollbars-vue.cjs.js.map

@@ -1,2 +0,2 @@

(function(l,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("overlayscrollbars")):typeof define=="function"&&define.amd?define(["exports","vue","overlayscrollbars"],e):(l=typeof globalThis<"u"?globalThis:l||self,e(l.OverlayScrollbarsVue={},l.Vue,l.OverlayScrollbarsGlobal))})(this,function(l,e,S){"use strict";const I=()=>{if(typeof window>"u"){const r=()=>{};return[r,r]}let c,o;const n=window,s=typeof n.requestIdleCallback=="function",a=n.requestAnimationFrame,i=n.cancelAnimationFrame,u=s?n.requestIdleCallback:a,p=s?n.cancelIdleCallback:i,t=()=>{p(c),i(o)};return[(r,m)=>{t(),c=u(s?()=>{t(),o=a(r)}:r,typeof m=="object"?m:{timeout:2233})},t]},w=c=>{let o=null,n,s,a;const i=e.shallowRef(c||{}),[u,p]=I();return e.watch(()=>{var t;return e.unref((t=i.value)==null?void 0:t.defer)},t=>{a=t},{deep:!0,immediate:!0}),e.watch(()=>{var t;return e.unref((t=i.value)==null?void 0:t.options)},t=>{n=t,S.OverlayScrollbars.valid(o)&&o.options(n||{},!0)},{deep:!0,immediate:!0}),e.watch(()=>{var t;return e.unref((t=i.value)==null?void 0:t.events)},t=>{s=t,S.OverlayScrollbars.valid(o)&&o.on(s||{},!0)},{deep:!0,immediate:!0}),e.onUnmounted(()=>{p(),o==null||o.destroy()}),[t=>{if(S.OverlayScrollbars.valid(o))return o;const r=()=>o=S.OverlayScrollbars(t,n||{},s||{});a?u(r,a):r()},()=>o]},_=e.defineComponent({__name:"OverlayScrollbarsComponent",props:{element:{type:String,default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(c,{expose:o,emit:n}){const s=c,a={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:i,options:u,events:p,defer:t}=e.toRefs(s),r=e.shallowRef(null),m=e.shallowRef(null),O=e.ref(),[R,h]=w({options:u,events:O,defer:t});return o({osInstance:h,getElement:()=>r.value}),e.watchPostEffect(y=>{const{value:b}=r,{value:d}=m;b&&d&&(R({target:b,elements:{viewport:d,content:d}}),y(()=>{var f;return(f=h())==null?void 0:f.destroy()}))}),e.watch(()=>e.unref(p),y=>{const b=y||{};O.value=Object.keys(a).reduce((d,f)=>{const v=b[f];return d[f]=[(...C)=>n(a[f],...C),...(Array.isArray(v)?v:[v]).filter(Boolean)],d},{})},{deep:!0,immediate:!0}),(y,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:r},{default:e.withCtx(()=>[e.createElementVNode("div",{"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:m},[e.renderSlot(y.$slots,"default")],512)]),_:3},512))}});l.OverlayScrollbarsComponent=_,l.useOverlayScrollbars=w,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
(function(l,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("overlayscrollbars")):typeof define=="function"&&define.amd?define(["exports","vue","overlayscrollbars"],e):(l=typeof globalThis<"u"?globalThis:l||self,e(l.OverlayScrollbarsVue={},l.Vue,l.OverlayScrollbarsGlobal))})(this,function(l,e,S){"use strict";const I=()=>{if(typeof window>"u"){const r=()=>{};return[r,r]}let c,o;const n=window,s=typeof n.requestIdleCallback=="function",a=n.requestAnimationFrame,i=n.cancelAnimationFrame,u=s?n.requestIdleCallback:a,p=s?n.cancelIdleCallback:i,t=()=>{p(c),i(o)};return[(r,m)=>{t(),c=u(s?()=>{t(),o=a(r)}:r,typeof m=="object"?m:{timeout:2233})},t]},w=c=>{let o=null,n,s,a;const i=e.shallowRef(c||{}),[u,p]=I();return e.watch(()=>{var t;return e.unref((t=i.value)==null?void 0:t.defer)},t=>{a=t},{deep:!0,immediate:!0}),e.watch(()=>{var t;return e.unref((t=i.value)==null?void 0:t.options)},t=>{n=t,S.OverlayScrollbars.valid(o)&&o.options(n||{},!0)},{deep:!0,immediate:!0}),e.watch(()=>{var t;return e.unref((t=i.value)==null?void 0:t.events)},t=>{s=t,S.OverlayScrollbars.valid(o)&&o.on(s||{},!0)},{deep:!0,immediate:!0}),e.onUnmounted(()=>{p(),o==null||o.destroy()}),[t=>{if(S.OverlayScrollbars.valid(o))return o;const r=()=>o=S.OverlayScrollbars(t,n||{},s||{});a?u(r,a):r()},()=>o]},R=e.defineComponent({__name:"OverlayScrollbarsComponent",props:{element:{type:String,default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(c,{expose:o,emit:n}){const s=c,a={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:i,options:u,events:p,defer:t}=e.toRefs(s),r=e.shallowRef(null),m=e.shallowRef(null),O=e.ref(),[C,h]=w({options:u,events:O,defer:t});return o({osInstance:h,getElement:()=>r.value}),e.watchPostEffect(y=>{const{value:b}=r,{value:d}=m;b&&d&&(C({target:b,elements:{viewport:d,content:d}}),y(()=>{var f;return(f=h())==null?void 0:f.destroy()}))}),e.watch(()=>e.unref(p),y=>{const b=y||{};O.value=Object.keys(a).reduce((d,f)=>{const v=b[f];return d[f]=[(..._)=>n(a[f],..._),...(Array.isArray(v)?v:[v]).filter(Boolean)],d},{})},{deep:!0,immediate:!0}),(y,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:r},{default:e.withCtx(()=>[e.createElementVNode("div",{"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:m},[e.renderSlot(y.$slots,"default")],512)]),_:3},512))}});l.OverlayScrollbarsComponent=R,l.useOverlayScrollbars=w,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=overlayscrollbars-vue.umd.js.map
{
"name": "overlayscrollbars-vue",
"version": "0.5.6",
"version": "0.5.7",
"description": "OverlayScrollbars for Vue.",

@@ -28,10 +28,19 @@ "author": "Rene Haas | KingSora",

],
"main": "overlayscrollbars-vue.umd.js",
"module": "overlayscrollbars-vue.es.js",
"main": "overlayscrollbars-vue.cjs.js",
"module": "overlayscrollbars-vue.esm.js",
"types": "types/overlayscrollbars-vue.d.ts",
"exports": {
".": {
"require": "./overlayscrollbars-vue.cjs.js",
"import": "./overlayscrollbars-vue.es.js",
"types": "./types/overlayscrollbars-vue.d.ts"
"import": {
"types": "./types/overlayscrollbars-vue.d.mts",
"default": "./overlayscrollbars-vue.mjs"
},
"require": {
"types": "./types/overlayscrollbars-vue.d.cts",
"default": "./overlayscrollbars-vue.cjs"
},
"default": {
"types": "./types/overlayscrollbars-vue.d.ts",
"default": "./overlayscrollbars-vue.cjs.js"
}
}

@@ -38,0 +47,0 @@ },

@@ -55,3 +55,3 @@ <div align="center">

> __Note__: In older node versions use `'overlayscrollbars/styles/overlayscrollbars.css'` as the import path for the CSS file.
> __Note__: If the path `'overlayscrollbars/overlayscrollbars.css'` is not working use `'overlayscrollbars/styles/overlayscrollbars.css'` as the import path for the CSS file.

@@ -58,0 +58,0 @@ ## Component

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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