@giwisoft/wc-split
Advanced tools
Comparing version 0.0.7 to 1.0.0
{ | ||
"components": [ | ||
{ | ||
"tag": "wc-split", | ||
"dependencies": [], | ||
"componentClass": "WcSplit", | ||
"componentPath": "components/wc-split/wc-split.js", | ||
"styles": { | ||
"$": { | ||
"stylePaths": [ | ||
"components/wc-split/wc-split.scss" | ||
] | ||
} | ||
}, | ||
"props": [ | ||
{ | ||
"name": "debug", | ||
"type": "Boolean", | ||
"attr": "debug" | ||
}, | ||
{ | ||
"name": "direction", | ||
"type": "String", | ||
"attr": "direction" | ||
}, | ||
{ | ||
"name": "items", | ||
"type": "String", | ||
"attr": "items" | ||
} | ||
], | ||
"events": [ | ||
{ | ||
"event": "resized" | ||
} | ||
], | ||
"shadow": true | ||
} | ||
"entries": [ | ||
"components/wc-split/wc-split.js" | ||
], | ||
"collections": [], | ||
"compiler": { | ||
"name": "@stencil/core", | ||
"version": "0.18.1", | ||
"typescriptVersion": "3.3.3" | ||
"version": "1.7.1", | ||
"typescriptVersion": "3.6.3" | ||
}, | ||
"collections": [], | ||
"bundles": [] | ||
} |
@@ -0,1 +1,2 @@ | ||
import { h } from "@stencil/core"; | ||
import Split from 'split.js'; | ||
@@ -26,2 +27,3 @@ export class WcSplit { | ||
sizes: sizes, | ||
// expandToMin: false, | ||
direction: this.direction, | ||
@@ -32,2 +34,6 @@ onDragEnd: this.onDragEnd.bind(this), | ||
} | ||
/** | ||
* | ||
* @param {number[]} newPercent | ||
*/ | ||
onDragEnd(newPercent) { | ||
@@ -55,24 +61,79 @@ const event = {}; | ||
static get encapsulation() { return "shadow"; } | ||
static get originalStyleUrls() { return { | ||
"$": ["wc-split.scss"] | ||
}; } | ||
static get styleUrls() { return { | ||
"$": ["wc-split.css"] | ||
}; } | ||
static get properties() { return { | ||
"debug": { | ||
"type": Boolean, | ||
"attr": "debug" | ||
"items": { | ||
"type": "string", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "{ name: string, size: number }[] | string", | ||
"resolved": "string | { name: string; size: number; }[]", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": false, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"attribute": "items", | ||
"reflect": false | ||
}, | ||
"direction": { | ||
"type": String, | ||
"attr": "direction" | ||
"type": "string", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "string", | ||
"resolved": "string", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": false, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"attribute": "direction", | ||
"reflect": false, | ||
"defaultValue": "'vertical'" | ||
}, | ||
"items": { | ||
"type": String, | ||
"attr": "items" | ||
"debug": { | ||
"type": "boolean", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "boolean", | ||
"resolved": "boolean", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": false, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"attribute": "debug", | ||
"reflect": false, | ||
"defaultValue": "false" | ||
} | ||
}; } | ||
static get events() { return [{ | ||
"method": "resized", | ||
"name": "resized", | ||
"method": "resized", | ||
"bubbles": true, | ||
"cancelable": true, | ||
"composed": true | ||
"composed": true, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"complexType": { | ||
"original": "any", | ||
"resolved": "any", | ||
"references": {} | ||
} | ||
}]; } | ||
static get style() { return "/**style-placeholder:wc-split:**/"; } | ||
} |
@@ -8,9 +8,6 @@ /* tslint:disable */ | ||
import './stencil.core'; | ||
import { HTMLStencilElement, JSXBase } from './stencil.core'; | ||
export namespace Components { | ||
interface WcSplit { | ||
@@ -21,20 +18,7 @@ 'debug': boolean; | ||
} | ||
interface WcSplitAttributes extends StencilHTMLAttributes { | ||
'debug'?: boolean; | ||
'direction'?: string; | ||
'items'?: { name: string, size: number }[] | string; | ||
'onResized'?: (event: CustomEvent) => void; | ||
} | ||
} | ||
declare global { | ||
interface StencilElementInterfaces { | ||
'WcSplit': Components.WcSplit; | ||
} | ||
interface StencilIntrinsicElements { | ||
'wc-split': Components.WcSplitAttributes; | ||
} | ||
interface HTMLWcSplitElement extends Components.WcSplit, HTMLStencilElement {} | ||
@@ -45,12 +29,31 @@ var HTMLWcSplitElement: { | ||
}; | ||
interface HTMLElementTagNameMap { | ||
'wc-split': HTMLWcSplitElement | ||
'wc-split': HTMLWcSplitElement; | ||
} | ||
} | ||
interface ElementTagNameMap { | ||
'wc-split': HTMLWcSplitElement; | ||
declare namespace LocalJSX { | ||
interface WcSplit { | ||
'debug'?: boolean; | ||
'direction'?: string; | ||
'items'?: { name: string, size: number }[] | string; | ||
'onResized'?: (event: CustomEvent<any>) => void; | ||
} | ||
interface IntrinsicElements { | ||
'wc-split': WcSplit; | ||
} | ||
} | ||
export { LocalJSX as JSX }; | ||
declare module "@stencil/core" { | ||
export namespace JSX { | ||
interface IntrinsicElements { | ||
'wc-split': LocalJSX.WcSplit & JSXBase.HTMLAttributes<HTMLWcSplitElement>; | ||
} | ||
} | ||
} | ||
@@ -1,2 +0,1 @@ | ||
import '../../stencil.core'; | ||
import { EventEmitter } from '../../stencil.core'; | ||
@@ -20,3 +19,3 @@ export declare class WcSplit { | ||
onDragEnd(newPercent: number[]): void; | ||
render(): JSX.Element; | ||
render(): any; | ||
} |
@@ -1,1 +0,29 @@ | ||
!function(e,t,r,n,s,i,c,o,l,a,u,p,d,h){for(u=e.WcSplit=e.WcSplit||{},(p=t.createElement("style")).innerHTML="wc-split{visibility:hidden}.hydrated{visibility:inherit}",p.setAttribute("data-styles",""),d=t.head.querySelector("meta[charset]"),t.head.insertBefore(p,d?d.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("WcSplit"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var n=e["s-apps"],s=0,i=0;i<n.length;i++)if(e[n[i]].componentOnReady){if(e[n[i]].componentOnReady(t,r))return;s++}if(s<n.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,a),s=s||u.resourcesUrl,p=(d=t.querySelectorAll("script")).length-1;p>=0&&!(h=d[p]).src&&!h.hasAttribute("data-resources-url");p--);d=h.getAttribute("data-resources-url"),!s&&d&&(s=d),!s&&h.src&&(s=(d=h.src.split("/").slice(0,-1)).join("/")+(d.length?"/":"")+"wc-split/"),p=t.createElement("script"),function(e,t,r,n){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,p)?p.src=s+"wc-split.yca7bs2b.js":(p.src=s+"wc-split.naqhelmc.js",p.setAttribute("type","module"),p.setAttribute("crossorigin",!0)),p.setAttribute("data-resources-url",s),p.setAttribute("data-namespace","wc-split"),t.head.appendChild(p)}(window,document,0,0,0,0,0,0,0,HTMLElement.prototype); | ||
(function(doc){ | ||
var scriptElm = doc.scripts[doc.scripts.length - 1]; | ||
var warn = ['[wc-split] Deprecated script, please remove: ' + scriptElm.outerHTML]; | ||
warn.push('To improve performance it is recommended to set the differential scripts in the head as follows:') | ||
var parts = scriptElm.src.split('/'); | ||
parts.pop(); | ||
parts.push('wc-split'); | ||
var url = parts.join('/'); | ||
var scriptElm = doc.createElement('script'); | ||
scriptElm.setAttribute('type', 'module'); | ||
scriptElm.src = url + '/wc-split.esm.js'; | ||
warn.push(scriptElm.outerHTML); | ||
scriptElm.setAttribute('data-stencil-namespace', 'wc-split'); | ||
doc.head.appendChild(scriptElm); | ||
scriptElm = doc.createElement('script'); | ||
scriptElm.setAttribute('nomodule', ''); | ||
scriptElm.src = url + '/wc-split.js'; | ||
warn.push(scriptElm.outerHTML); | ||
scriptElm.setAttribute('data-stencil-namespace', 'wc-split'); | ||
doc.head.appendChild(scriptElm); | ||
console.warn(warn.join('\n')); | ||
})(document); |
{ | ||
"name": "@giwisoft/wc-split", | ||
"version": "0.0.7", | ||
"version": "1.0.0", | ||
"description": "Unopinionated utilities for resizeable split views", | ||
"unpkg": "dist/wc-split/wc-split.js", | ||
"repository": { | ||
@@ -18,22 +19,27 @@ "type": "git", | ||
], | ||
"module": "dist/esm/index.js", | ||
"main": "dist/index.js", | ||
"types": "dist/types/components.d.ts", | ||
"module": "dist/index.mjs", | ||
"es2015": "dist/esm/index.mjs", | ||
"es2017": "dist/esm/index.mjs", | ||
"types": "dist/types/index.d.ts", | ||
"collection": "dist/collection/collection-manifest.json", | ||
"collection:main": "dist/collection/index.js", | ||
"files": [ | ||
"dist/" | ||
"dist/", | ||
"loader/" | ||
], | ||
"scripts": { | ||
"build": "stencil build --docs", | ||
"dev": "stencil build --dev --watch --serve", | ||
"start": "stencil build --dev --watch --serve", | ||
"test": "stencil test --spec --e2e", | ||
"test.watch": "stencil test --spec --e2e --watchAll" | ||
"test.watch": "stencil test --spec --e2e --watchAll", | ||
"generate": "stencil generate" | ||
}, | ||
"dependencies": { | ||
"split.js": "^1.5.10" | ||
"split.js": "^1.5.11" | ||
}, | ||
"devDependencies": { | ||
"@stencil/core": "~0.18.1", | ||
"@stencil/sass": "^0.2.1" | ||
"@stencil/core": "~1.7.1", | ||
"@stencil/sass": "1.0.0" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7310
1
1
2
325598
17
1
Updatedsplit.js@^1.5.11