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

@everymatrix/helper-modal

Package Overview
Dependencies
Maintainers
13
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@everymatrix/helper-modal - npm Package Compare versions

Comparing version 0.1.7 to 0.1.20

dist/cjs/index-c6e4ec44.js

36

dist/cjs/helper-modal.cjs.entry.js

@@ -5,3 +5,3 @@ 'use strict';

const index = require('./index-22317c69.js');
const index = require('./index-c6e4ec44.js');

@@ -31,3 +31,24 @@ /**

this.visible = true;
/**
* Client custom styling via string
*/
this.clientStyling = '';
/**
* Client custom styling via url content
*/
this.clientStylingUrlContent = '';
this.limitStylingAppends = false;
this.userAgent = window.navigator.userAgent;
this.setClientStyling = () => {
let sheet = document.createElement('style');
sheet.innerHTML = this.clientStyling;
this.stylingContainer.prepend(sheet);
};
this.setClientStylingURL = () => {
let cssFile = document.createElement('style');
setTimeout(() => {
cssFile.innerHTML = this.clientStylingUrlContent;
this.stylingContainer.prepend(cssFile);
}, 1);
};
}

@@ -39,5 +60,16 @@ handleHelperModalClose() {

;
componentDidRender() {
// start custom styling area
if (!this.limitStylingAppends && this.stylingContainer) {
if (this.clientStyling)
this.setClientStyling();
if (this.clientStylingUrlContent)
this.setClientStylingURL();
this.limitStylingAppends = true;
}
// end custom styling area
}
render() {
return ((this.visible &&
index.h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper" }, index.h("div", { class: "HelperModalWrapper HelperModalVisible" }, index.h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, index.h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), index.h("slot", null))))));
index.h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el }, index.h("div", { class: "HelperModalWrapper HelperModalVisible" }, index.h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, index.h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), index.h("slot", null))))));
}

@@ -44,0 +76,0 @@ };

4

dist/cjs/helper-modal.cjs.js
'use strict';
const index = require('./index-22317c69.js');
const index = require('./index-c6e4ec44.js');

@@ -18,3 +18,3 @@ /*

patchBrowser().then(options => {
return index.bootstrapLazy([["helper-modal.cjs",[[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
return index.bootstrapLazy([["helper-modal.cjs",[[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
});

@@ -5,3 +5,3 @@ 'use strict';

const index = require('./index-22317c69.js');
const index = require('./index-c6e4ec44.js');

@@ -18,3 +18,3 @@ /*

return patchEsm().then(() => {
return index.bootstrapLazy([["helper-modal.cjs",[[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
return index.bootstrapLazy([["helper-modal.cjs",[[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
});

@@ -21,0 +21,0 @@ };

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

import { Component, Event, h, Prop } from '@stencil/core';
import { Component, Event, h, Prop, State } from '@stencil/core';
import { isMobile } from "../../utils/utils";

@@ -9,3 +9,24 @@ export class HelperModal {

this.visible = true;
/**
* Client custom styling via string
*/
this.clientStyling = '';
/**
* Client custom styling via url content
*/
this.clientStylingUrlContent = '';
this.limitStylingAppends = false;
this.userAgent = window.navigator.userAgent;
this.setClientStyling = () => {
let sheet = document.createElement('style');
sheet.innerHTML = this.clientStyling;
this.stylingContainer.prepend(sheet);
};
this.setClientStylingURL = () => {
let cssFile = document.createElement('style');
setTimeout(() => {
cssFile.innerHTML = this.clientStylingUrlContent;
this.stylingContainer.prepend(cssFile);
}, 1);
};
}

@@ -17,5 +38,16 @@ handleHelperModalClose() {

;
componentDidRender() {
// start custom styling area
if (!this.limitStylingAppends && this.stylingContainer) {
if (this.clientStyling)
this.setClientStyling();
if (this.clientStylingUrlContent)
this.setClientStylingURL();
this.limitStylingAppends = true;
}
// end custom styling area
}
render() {
return ((this.visible &&
h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper" },
h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el },
h("div", { class: "HelperModalWrapper HelperModalVisible" },

@@ -69,4 +101,43 @@ h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') },

"defaultValue": "true"
},
"clientStyling": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Client custom styling via string"
},
"attribute": "client-styling",
"reflect": false,
"defaultValue": "''"
},
"clientStylingUrlContent": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Client custom styling via url content"
},
"attribute": "client-styling-url-content",
"reflect": false,
"defaultValue": "''"
}
}; }
static get states() { return {
"limitStylingAppends": {}
}; }
static get events() { return [{

@@ -73,0 +144,0 @@ "method": "cancel",

@@ -28,3 +28,24 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';

this.visible = true;
/**
* Client custom styling via string
*/
this.clientStyling = '';
/**
* Client custom styling via url content
*/
this.clientStylingUrlContent = '';
this.limitStylingAppends = false;
this.userAgent = window.navigator.userAgent;
this.setClientStyling = () => {
let sheet = document.createElement('style');
sheet.innerHTML = this.clientStyling;
this.stylingContainer.prepend(sheet);
};
this.setClientStylingURL = () => {
let cssFile = document.createElement('style');
setTimeout(() => {
cssFile.innerHTML = this.clientStylingUrlContent;
this.stylingContainer.prepend(cssFile);
}, 1);
};
}

@@ -36,5 +57,16 @@ handleHelperModalClose() {

;
componentDidRender() {
// start custom styling area
if (!this.limitStylingAppends && this.stylingContainer) {
if (this.clientStyling)
this.setClientStyling();
if (this.clientStylingUrlContent)
this.setClientStylingURL();
this.limitStylingAppends = true;
}
// end custom styling area
}
render() {
return ((this.visible &&
h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper" }, h("div", { class: "HelperModalWrapper HelperModalVisible" }, h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h("slot", null))))));
h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el }, h("div", { class: "HelperModalWrapper HelperModalVisible" }, h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h("slot", null))))));
}

@@ -44,3 +76,6 @@ static get style() { return helperModalCss; }

"titleModal": [1, "title-modal"],
"visible": [1540]
"visible": [1540],
"clientStyling": [1, "client-styling"],
"clientStylingUrlContent": [1, "client-styling-url-content"],
"limitStylingAppends": [32]
}]);

@@ -47,0 +82,0 @@ function defineCustomElement$1() {

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

import { r as registerInstance, c as createEvent, h } from './index-e9ec1aeb.js';
import { r as registerInstance, c as createEvent, h } from './index-4d594e7d.js';

@@ -26,3 +26,24 @@ /**

this.visible = true;
/**
* Client custom styling via string
*/
this.clientStyling = '';
/**
* Client custom styling via url content
*/
this.clientStylingUrlContent = '';
this.limitStylingAppends = false;
this.userAgent = window.navigator.userAgent;
this.setClientStyling = () => {
let sheet = document.createElement('style');
sheet.innerHTML = this.clientStyling;
this.stylingContainer.prepend(sheet);
};
this.setClientStylingURL = () => {
let cssFile = document.createElement('style');
setTimeout(() => {
cssFile.innerHTML = this.clientStylingUrlContent;
this.stylingContainer.prepend(cssFile);
}, 1);
};
}

@@ -34,5 +55,16 @@ handleHelperModalClose() {

;
componentDidRender() {
// start custom styling area
if (!this.limitStylingAppends && this.stylingContainer) {
if (this.clientStyling)
this.setClientStyling();
if (this.clientStylingUrlContent)
this.setClientStylingURL();
this.limitStylingAppends = true;
}
// end custom styling area
}
render() {
return ((this.visible &&
h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper" }, h("div", { class: "HelperModalWrapper HelperModalVisible" }, h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h("slot", null))))));
h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el }, h("div", { class: "HelperModalWrapper HelperModalVisible" }, h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h("slot", null))))));
}

@@ -39,0 +71,0 @@ };

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

import { p as promiseResolve, b as bootstrapLazy } from './index-e9ec1aeb.js';
import { p as promiseResolve, b as bootstrapLazy } from './index-4d594e7d.js';

@@ -16,3 +16,3 @@ /*

patchBrowser().then(options => {
return bootstrapLazy([["helper-modal",[[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
return bootstrapLazy([["helper-modal",[[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
});

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

import { p as promiseResolve, b as bootstrapLazy } from './index-e9ec1aeb.js';
import { p as promiseResolve, b as bootstrapLazy } from './index-4d594e7d.js';

@@ -13,3 +13,3 @@ /*

return patchEsm().then(() => {
return bootstrapLazy([["helper-modal",[[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
return bootstrapLazy([["helper-modal",[[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
});

@@ -16,0 +16,0 @@ };

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

import{p as e,b as t}from"./p-3e8f6982.js";(()=>{const t=import.meta.url,l={};return""!==t&&(l.resourcesUrl=new URL(".",t).href),e(l)})().then((e=>t([["p-53582ffe",[[1,"helper-modal",{titleModal:[1,"title-modal"],visible:[1540]}]]]],e)));
import{p as t,b as l}from"./p-1c2c3fd8.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),t(i)})().then((t=>l([["p-66f1c138",[[1,"helper-modal",{titleModal:[1,"title-modal"],visible:[1540],clientStyling:[1,"client-styling"],clientStylingUrlContent:[1,"client-styling-url-content"],limitStylingAppends:[32]}]]]],t)));

@@ -11,2 +11,10 @@ /* eslint-disable */

/**
* Client custom styling via string
*/
"clientStyling": string;
/**
* Client custom styling via url content
*/
"clientStylingUrlContent": string;
/**
* Modal title

@@ -35,2 +43,10 @@ */

/**
* Client custom styling via string
*/
"clientStyling"?: string;
/**
* Client custom styling via url content
*/
"clientStylingUrlContent"?: string;
/**
* The event triggered when the modal is closed

@@ -37,0 +53,0 @@ */

@@ -10,3 +10,13 @@ export declare class HelperModal {

visible: boolean;
/**
* Client custom styling via string
*/
clientStyling: string;
/**
* Client custom styling via url content
*/
clientStylingUrlContent: string;
private limitStylingAppends;
private userAgent;
private stylingContainer;
/**

@@ -17,3 +27,6 @@ * The event triggered when the modal is closed

handleHelperModalClose(): void;
componentDidRender(): void;
setClientStyling: () => void;
setClientStylingURL: () => void;
render(): any;
}
{
"name": "@everymatrix/helper-modal",
"version": "0.1.7",
"version": "0.1.20",
"main": "./dist/index.cjs.js",

@@ -5,0 +5,0 @@ "module": "./dist/index.js",

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