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

@bruit/component

Package Overview
Dependencies
Maintainers
3
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bruit/component - npm Package Compare versions

Comparing version 2.0.13-plop to 2.0.14-plop

dist/collection/start.js

2

dist/bruit/bruit.esm.js

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

import{p as o,b as r}from"./p-a032bc54.js";o().then(o=>r([["bruit-io_3",[[0,"bruit-modal",{modalOpened:[32],modalBrtField:[32],modalError:[32],bruitIoConfig:[32],rererenderBool:[32],open:[64]}],[4,"bruit-io",{config:[1025,"brt-config"],data:[1040],dataFn:[1040],_config:[32]}],[0,"bruit-rating",{value:[1538],max:[1538],color:[1],offColor:[1,"off-color"],onBorderColor:[32]}]]]],{resourcesUrl:o}));
import{p as o,b as r}from"./p-a032bc54.js";o().then(o=>r([["bruit-io_3",[[0,"bruit-modal",{config:[1,"brt-config"],modalOpened:[32],modalBrtField:[32],modalError:[32],bruitIoConfig:[32],rererenderBool:[32],open:[64]}],[4,"bruit-io",{config:[1025,"brt-config"],data:[1040],dataFn:[1040],_config:[32]}],[0,"bruit-rating",{value:[1538],max:[1538],color:[1],offColor:[1,"off-color"],onBorderColor:[32]}]]]],{resourcesUrl:o}));

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

System.register(["./p-8e3d27d9.system.js"],function(){"use strict";var r,o;return{setters:[function(e){r=e.p;o=e.b}],execute:function(){r().then(function(r){return o([["bruit-io_3.system",[[0,"bruit-modal",{modalOpened:[32],modalBrtField:[32],modalError:[32],bruitIoConfig:[32],rererenderBool:[32],open:[64]}],[4,"bruit-io",{config:[1025,"brt-config"],data:[1040],dataFn:[1040],_config:[32]}],[0,"bruit-rating",{value:[1538],max:[1538],color:[1],offColor:[1,"off-color"],onBorderColor:[32]}]]]],{resourcesUrl:r})})}}});
System.register(["./p-8e3d27d9.system.js"],function(){"use strict";var o,r;return{setters:[function(e){o=e.p;r=e.b}],execute:function(){o().then(function(o){return r([["bruit-io_3.system",[[0,"bruit-modal",{config:[1,"brt-config"],modalOpened:[32],modalBrtField:[32],modalError:[32],bruitIoConfig:[32],rererenderBool:[32],open:[64]}],[4,"bruit-io",{config:[1025,"brt-config"],data:[1040],dataFn:[1040],_config:[32]}],[0,"bruit-rating",{value:[1538],max:[1538],color:[1],offColor:[1,"off-color"],onBorderColor:[32]}]]]],{resourcesUrl:o})})}}});

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

__chunk_1.patchBrowser().then(resourcesUrl => {
return __chunk_1.bootstrapLazy([["bruit-io_3.cjs",[[0,"bruit-modal",{"modalOpened":[32],"modalBrtField":[32],"modalError":[32],"bruitIoConfig":[32],"rererenderBool":[32],"open":[64]}],[4,"bruit-io",{"config":[1025,"brt-config"],"data":[1040],"dataFn":[1040],"_config":[32]}],[0,"bruit-rating",{"value":[1538],"max":[1538],"color":[1],"offColor":[1,"off-color"],"onBorderColor":[32]}]]]], { resourcesUrl });
return __chunk_1.bootstrapLazy([["bruit-io_3.cjs",[[0,"bruit-modal",{"config":[1,"brt-config"],"modalOpened":[32],"modalBrtField":[32],"modalError":[32],"bruitIoConfig":[32],"rererenderBool":[32],"open":[64]}],[4,"bruit-io",{"config":[1025,"brt-config"],"data":[1040],"dataFn":[1040],"_config":[32]}],[0,"bruit-rating",{"value":[1538],"max":[1538],"color":[1],"offColor":[1,"off-color"],"onBorderColor":[32]}]]]], { resourcesUrl });
});

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

return __chunk_1.patchEsm().then(() => {
__chunk_1.bootstrapLazy([["bruit-io_3.cjs",[[0,"bruit-modal",{"modalOpened":[32],"modalBrtField":[32],"modalError":[32],"bruitIoConfig":[32],"rererenderBool":[32],"open":[64]}],[4,"bruit-io",{"config":[1025,"brt-config"],"data":[1040],"dataFn":[1040],"_config":[32]}],[0,"bruit-rating",{"value":[1538],"max":[1538],"color":[1],"offColor":[1,"off-color"],"onBorderColor":[32]}]]]], options);
__chunk_1.bootstrapLazy([["bruit-io_3.cjs",[[0,"bruit-modal",{"config":[1,"brt-config"],"modalOpened":[32],"modalBrtField":[32],"modalError":[32],"bruitIoConfig":[32],"rererenderBool":[32],"open":[64]}],[4,"bruit-io",{"config":[1025,"brt-config"],"data":[1040],"dataFn":[1040],"_config":[32]}],[0,"bruit-rating",{"value":[1538],"max":[1538],"color":[1],"offColor":[1,"off-color"],"onBorderColor":[32]}]]]], options);
});

@@ -12,0 +12,0 @@ };

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

import { Bruit } from '@bruit/core/dist/lib/bruit';
import { BrtFieldType } from '@bruit/types/dist/enums/brt-field-type';

@@ -17,2 +18,39 @@ import { h } from '@stencil/core';

}
/**
* test validity of config and assign to internal config
* @param newConfig the new value of config
*/
initConfig(newConfig) {
let _newConfig;
let configError;
if (newConfig) {
if (typeof newConfig === 'string') {
try {
_newConfig = JSON.parse(newConfig);
}
catch (_a) {
configError = {
code: 100,
text: 'bad config format (must be a json or stringified json)'
};
}
}
else {
_newConfig = newConfig;
}
}
if (!configError) {
try {
Bruit.init(_newConfig);
}
catch (error) {
this.onError.emit(error);
console.error(error);
}
}
else {
this.onError.emit(configError);
console.error(configError);
}
}
rererender() {

@@ -26,2 +64,4 @@ this.rererenderBool = !!this.rererenderBool;

console.info('[BRUIT.IO] - bruit started ...');
// first init
this.initConfig(this.config);
}

@@ -405,2 +445,26 @@ hideVirtualKeyboard() {

}; }
static get properties() { return {
"config": {
"type": "string",
"mutable": false,
"complexType": {
"original": "BrtCoreConfig | string",
"resolved": "BrtCoreConfig | string",
"references": {
"BrtCoreConfig": {
"location": "import",
"path": "@bruit/types"
}
}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"attribute": "brt-config",
"reflect": false
}
}; }
static get states() { return {

@@ -468,2 +532,6 @@ "modalOpened": {},

static get elementRef() { return "bruitCoreHtmlElement"; }
static get watchers() { return [{
"propName": "config",
"methodName": "initConfig"
}]; }
}

@@ -11,2 +11,3 @@ /* tslint:disable */

BrtConfig,
BrtCoreConfig,
BrtData,

@@ -28,2 +29,3 @@ } from '@bruit/types';

interface BruitModal {
'config': BrtCoreConfig | string;
/**

@@ -86,2 +88,3 @@ * called on click on bruit-io init a feedback, wait user submit, send feedback

interface BruitModal extends JSXBase.HTMLAttributes<HTMLBruitModalElement> {
'config'?: BrtCoreConfig | string;
/**

@@ -88,0 +91,0 @@ * emit bruit-error on internal error or config error ex : BruitIo.addEventListener('onError',error=>...)

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

import { BrtConfig, BrtData, BrtError, BrtField } from '@bruit/types';
import { BrtConfig, BrtCoreConfig, BrtData, BrtError, BrtField } from '@bruit/types';
import { EventEmitter } from '../../stencil.core';

@@ -6,3 +6,9 @@ import { SubmitButtonState } from '../../enums/submitButtonState.enum';

export declare class BruitModal {
config: BrtCoreConfig | string;
/**
* test validity of config and assign to internal config
* @param newConfig the new value of config
*/
initConfig(newConfig: BrtCoreConfig | string): void;
/**
* emit bruit-error on internal error or config error

@@ -9,0 +15,0 @@ * ex : BruitIo.addEventListener('onError',error=>...)

{
"name": "@bruit/component",
"version": "2.0.13-plop",
"version": "2.0.14-plop",
"description": "send your feedbacks with bruit.io",

@@ -34,3 +34,2 @@ "keywords": [

"@stencil/sass": "^1.0.1",
"@stencil/webpack": "0.0.6",
"chalk": "^2.4.2",

@@ -56,4 +55,5 @@ "edit-json-file": "^1.2.1",

"dependencies": {
"@bruit/types": "0.3.2-2"
"@bruit/types": "0.3.2-2",
"@bruit/core": "2.0.13-plop"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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