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

@ne1410s/demo

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ne1410s/demo - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

dist/demo-tooltip/demo-tooltip.d.ts
import { CustomElementBase } from '@ne1410s/cust-elems';
export declare class DemoTooltip extends CustomElementBase {
static readonly observedAttributes: string[];
private static readonly Css;
private static readonly Html;
constructor();

@@ -5,0 +7,0 @@ set reveal(value: string);

6

dist/ne14_demo.cjs.min.js

@@ -9,7 +9,7 @@ 'use strict';

var stylesUrl = "data:text/css;base64,LnJvb3Qgew0KICBwb3NpdGlvbjogcmVsYXRpdmU7DQogIGJvcmRlcjogMXB4IHNvbGlkIGJsYWNrOw0KICBib3JkZXItcmFkaXVzOiAzcHg7DQogIHBhZGRpbmc6IDA7DQogIG1hcmdpbjogMDsNCiAgZGlzcGxheTogaW5saW5lLWJsb2NrOw0KfQ0KLm5vcm1hbCB7DQogIHBhZGRpbmc6IDAgMC4yNXJlbTsNCiAgdHJhbnNpdGlvbjogY29sb3IgMC4zcywgYmFja2dyb3VuZC1jb2xvciAwLjNzOw0KICBkaXNwbGF5OiBibG9jazsNCn0NCi5yZXZlYWxbZGF0YS1jb3JuZXJdIHsNCiAgcG9zaXRpb246IGZpeGVkOw0KfQ0KLnJldmVhbFtkYXRhLWNvcm5lcj0nMSddIHsNCiAgdG9wOiAwOw0KICBsZWZ0OiAwOw0KfQ0KLnJldmVhbFtkYXRhLWNvcm5lcj0nMiddIHsNCiAgdG9wOiAwOw0KICByaWdodDogMDsNCn0NCi5yZXZlYWxbZGF0YS1jb3JuZXI9JzMnXSB7DQogIGJvdHRvbTogMDsNCiAgcmlnaHQ6IDA7DQp9DQoucmV2ZWFsW2RhdGEtY29ybmVyPSc0J10gew0KICBib3R0b206IDA7DQogIGxlZnQ6IDA7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2YXIoLS1yZXZlYWwtc3JjLWJvcmRlciwgdmFyKC0tc3JjLWJvcmRlcikpOw0KfQ0KLnJvb3Q6aG92ZXIgLm5vcm1hbCB7DQogIGNvbG9yOiB2YXIoLS1yZXZlYWwtc3JjLWZnLCBpbmhlcml0KTsNCiAgYmFja2dyb3VuZDogdmFyKC0tcmV2ZWFsLXNyYy1iZywgaW5oZXJpdCk7DQp9DQoucm9vdDpob3ZlciAucmV2ZWFsIHsNCiAgb3BhY2l0eTogMTsNCiAgcG9pbnRlci1ldmVudHM6IGluaXRpYWw7DQp9DQoucm9vdDpub3QoOmhvdmVyKSAucmV2ZWFsIHsNCiAgZGlzcGxheTogbm9uZTsNCn0NCg==";
class DemoTooltip extends custElems.CustomElementBase {
constructor() {
super(stylesUrl, markupUrl);
super(DemoTooltip.Css, DemoTooltip.Html);
}

@@ -46,2 +46,4 @@ set reveal(value) {

DemoTooltip.observedAttributes = ['corner', 'reveal'];
DemoTooltip.Css = custElems.reduceCss(custElems.decode(stylesUrl));
DemoTooltip.Html = custElems.reduceHtml(custElems.decode(markupUrl));

@@ -48,0 +50,0 @@ if ('customElements' in window) {

@@ -1,10 +0,10 @@

import { CustomElementBase } from '@ne1410s/cust-elems';
import { CustomElementBase, reduceCss, decode, reduceHtml } from '@ne1410s/cust-elems';
var markupUrl = "data:text/html;base64,PHNwYW4gY2xhc3M9InJvb3QiPg0KICA8c3BhbiBjbGFzcz0ibm9ybWFsIj4NCiAgICA8c2xvdD48L3Nsb3Q+DQogIDwvc3Bhbj4NCiAgPHNwYW4gY2xhc3M9InJldmVhbCI+DQogICAgPHNsb3QgbmFtZT0icmV2ZWFsIj48L3Nsb3Q+DQogIDwvc3Bhbj4NCjwvc3Bhbj4NCg==";
var stylesUrl = "data:text/css;base64,LnJvb3Qgew0KICBwb3NpdGlvbjogcmVsYXRpdmU7DQogIGJvcmRlcjogMXB4IHNvbGlkIGJsYWNrOw0KICBib3JkZXItcmFkaXVzOiAzcHg7DQogIHBhZGR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LTUwJSk7DQogIGxlZnQ6IGNhbGMoMTAwJSk7DQp9DQoucmV2ZWFsIHsNCiAgb3BhY2l0eTogMDsNCiAgcG9zaXRpb246IGFic29sdXRlOw0KICBwb2ludGVyLWV2ZW50czogbm9uZTsNCiAgYm9yZGVyOiB2YXIoLS1yZXZlYWwtdHJnLWJvcmRlciwgMXB4IHNvbGlkIGJsYWNrKTsNCiAgYm9yZGVyLXJhZGl1czogdmFyKC0tdHJnLWJvcmRlci1yYWRpdXMsIDNweCk7DQogIGNvbG9yOiB2YXIoLS1yZXZlYWwtdHJnLWZnLCBpbmhlcml0KTsNCiAgYmFja2dyb3VuZDogdmFyKC0tcmV2ZWFsLXRyZy1iZywgd2hpdGUpOw0KICB3aGl0ZS1zcGFjZTogbm93cmFwOw0KICBmb250LXN0eWxlOiBpdGFsaWM7DQogIGZvbnQtc2l6ZTogMC44ZW07DQogIHBhZGRpbmc6IDAuNXJlbTsNCiAgei1pbmRleDogMTsNCn0NCi5yb290OmhvdmVyIHsNCiAgYm9yZGVyOiB2YXIoLS1yZXZlYWwtc3JjLWJvcmRlciwgdmFyKC0tc3JjLWJvcmRlcikpOw0KfQ0KLnJvb3Q6aG92ZXIgLm5vcm1hbCB7DQogIGNvbG9yOiB2YXIoLS1yZXZlYWwtc3JjLWZnLCBpbmhlcml0KTsNCiAgYmFja2dyb3VuZDogdmFyKC0tcmV2ZWFsLXNyYy1iZywgaW5oZXJpdCk7DQp9DQoucm9vdDpob3ZlciAucmV2ZWFsIHsNCiAgb3BhY2l0eTogMTsNCiAgcG9pbnRlci1ldmVudHM6IGluaXRpYWw7DQp9DQoucm9vdDpub3QoOmhvdmVyKSAucmV2ZWFsIHsNCiAgZGlzcGxheTogbm9uZTsNCn0NCg==";
class DemoTooltip extends CustomElementBase {
constructor() {
super(stylesUrl, markupUrl);
super(DemoTooltip.Css, DemoTooltip.Html);
}

@@ -41,2 +41,4 @@ set reveal(value) {

DemoTooltip.observedAttributes = ['corner', 'reveal'];
DemoTooltip.Css = reduceCss(decode(stylesUrl));
DemoTooltip.Html = reduceHtml(decode(markupUrl));

@@ -43,0 +45,0 @@ if ('customElements' in window) {

@@ -11,20 +11,30 @@ (function (global, factory) {

this.root = this.attachShadow({ mode });
this.root.innerHTML = this.decode(html);
this.root.innerHTML = html;
const style = document.createElement('style');
style.textContent = this.decode(css);
style.textContent = css;
this.root.appendChild(style);
}
decode(b64) {
const bIndex = (b64 + '').indexOf('base64,');
return bIndex === -1 ? b64 : window.atob(b64.substring(bIndex + 7));
}
}
function decode(b64) {
const bIndex = (b64 + '').indexOf('base64,');
return bIndex === -1 ? b64 : window.atob(b64.substring(bIndex + 7));
}
function reduceCss(cssIn) {
return cssIn
.replace(/\s+/g, ' ')
.replace(/([,{}:;])\s/g, '$1')
.replace(/\s([{])/g, '$1');
}
function reduceHtml(htmlIn) {
return htmlIn.replace(/\s+/g, ' ').replace(/>\s</g, '><');
}
var markupUrl = "data:text/html;base64,PHNwYW4gY2xhc3M9InJvb3QiPg0KICA8c3BhbiBjbGFzcz0ibm9ybWFsIj4NCiAgICA8c2xvdD48L3Nsb3Q+DQogIDwvc3Bhbj4NCiAgPHNwYW4gY2xhc3M9InJldmVhbCI+DQogICAgPHNsb3QgbmFtZT0icmV2ZWFsIj48L3Nsb3Q+DQogIDwvc3Bhbj4NCjwvc3Bhbj4NCg==";
var stylesUrl = "data:text/css;base64,LnJvb3Qgew0KICBwb3NpdGlvbjogcmVsYXRpdmU7DQogIGJvcmRlcjogMXB4IHNvbGlkIGJsYWNrOw0KICBib3JkZXItcmFkaXVzOiAzcHg7DQogIHBhZGRpbmc6IDA7DQogIG1hcmdpbjogMDsNCiAgZGlzcGxheTogaW5saW5lLWJsb2NrOw0KfQ0KLm5vcm1hbCB7DQogIHBhZGRpbmc6IDAgMC4yNXJlbTsNCiAgdHJhbnNpdGlvbjogY29sb3IgMC4zcywgYmFja2dyb3VuZC1jb2xvciAwLjNzOw0KICBkaXNwbGF5OiBibG9jazsNCn0NCi5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TsNCiAgYm9yZGVyLXJhZGl1czogdmFyKC0tdHJnLWJvcmRlci1yYWRpdXMsIDNweCk7DQogIGNvbG9yOiB2YXIoLS1yZXZlYWwtdHJnLWZnLCBpbmhlcml0KTsNCiAgYmFja2dyb3VuZDogdmFyKC0tcmV2ZWFsLXRyZy1iZywgd2hpdGUpOw0KICB3aGl0ZS1zcGFjZTogbm93cmFwOw0KICBmb250LXN0eWxlOiBpdGFsaWM7DQogIGZvbnQtc2l6ZTogMC44ZW07DQogIHBhZGRpbmc6IDAuNXJlbTsNCiAgei1pbmRleDogMTsNCn0NCi5yb290OmhvdmVyIHsNCiAgYm9yZGVyOiB2YXIoLS1yZXZlYWwtc3JjLWJvcmRlciwgdmFyKC0tc3JjLWJvcmRlcikpOw0KfQ0KLnJvb3Q6aG92ZXIgLm5vcm1hbCB7DQogIGNvbG9yOiB2YXIoLS1yZXZlYWwtc3JjLWZnLCBpbmhlcml0KTsNCiAgYmFja2dyb3VuZDogdmFyKC0tcmV2ZWFsLXNyYy1iZywgaW5oZXJpdCk7DQp9DQoucm9vdDpob3ZlciAucmV2ZWFsIHsNCiAgb3BhY2l0eTogMTsNCiAgcG9pbnRlci1ldmVudHM6IGluaXRpYWw7DQp9DQoucm9vdDpub3QoOmhvdmVyKSAucmV2ZWFsIHsNCiAgZGlzcGxheTogbm9uZTsNCn0NCg==";
class DemoTooltip extends CustomElementBase {
constructor() {
super(stylesUrl, markupUrl);
super(DemoTooltip.Css, DemoTooltip.Html);
}

@@ -61,2 +71,4 @@ set reveal(value) {

DemoTooltip.observedAttributes = ['corner', 'reveal'];
DemoTooltip.Css = reduceCss(decode(stylesUrl));
DemoTooltip.Html = reduceHtml(decode(markupUrl));

@@ -63,0 +75,0 @@ if ('customElements' in window) {

{
"name": "@ne1410s/demo",
"version": "0.0.3",
"version": "0.0.4",
"description": "A custom element for demonstration purposes and to serve as a project template.",

@@ -41,15 +41,15 @@ "main": "dist/ne14_demo.cjs.min.js",

"devDependencies": {
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-url": "^5.0.1",
"prettier": "^2.1.2",
"rimraf": "^3.0.1",
"rollup": "^2.31.0",
"rollup-plugin-typescript2": "^0.27.3",
"typescript": "^4.0.3"
"rollup": "^2.33.2",
"rollup-plugin-typescript2": "^0.29.0",
"typescript": "^4.0.5"
},
"dependencies": {
"@ne1410s/cust-elems": "^0.1.5"
"@ne1410s/cust-elems": "file:../core.elem/ne1410s-cust-elems-0.1.5.tgz"
}
}

@@ -46,1 +46,24 @@ # @ne1410s/demo

- `set` **reveal** (string): Sets the attribute with the corresponding value
### CSS Variables
Some degree of custom styling can be provided, by way of css variables:
```css
ne14-demo-tooltip {
--src-border: 1px solid green;
--reveal-trg-bg: rebeccapurple;
}
```
- **`--src-border-radius`** _Source item border radius. Defaults to: `3px`_
- **`--src-border`** _Source item border. Defaults to: `1px solid black`_
- **`--src-bg`** _Source item background. Defaults to: `inherit`_
- **`--src-fg`** _Source item foreground. Defaults to: `inherit`_
- **`--trg-border-radius`** _Target item border radius. Defaults to: `3px`_
- **`--reveal-src-border`** _Source item border (in reveal mode). Defaults to: `--src-border`_
- **`--reveal-src-bg`** _Source item background (in reveal mode). Defaults to: `inherit`_
- **`--reveal-src-fg`** _Source item foreground (in reveal mode). Defaults to: `inherit`_
- **`--reveal-trg-border`** _Target item border (in reveal mode). Defaults to: `1px solid black`_
- **`--reveal-trg-bg`** _Target item background (in reveal mode). Defaults to: `white`_
- **`--reveal-trg-fg`** _Target item foreground (in reveal mode). Defaults to: `inherit`_
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