@bruit/component
Advanced tools
Comparing version 1.3.11 to 1.3.12-beta1
@@ -0,0 +0,0 @@ # Changelog |
@@ -1,1 +0,1 @@ | ||
import{p as o,g as r,b as i}from"./p-fe5d9284.js";o().then(o=>(r(),i([["p-dt0pahmm",[[1,"bruit-core",{config:[1,"brt-config"],_bruitCoreConfig:[32],modalOpened:[32],modalBrtField:[32],modalError:[32],_bruitIoConfig:[32],newFeedback:[64],sendFeedback:[64]}],[1,"bruit-io",{config:[1,"brt-config"],data:[16],dataFn:[16],_config:[32]}],[0,"bruit-rating",{value:[1538],max:[1538],color:[1],offColor:[1,"off-color"],onBorderColor:[32]}],[0,"bruit-select",{id:[1],options:[16],value:[1],required:[4]}]]]],o))); | ||
import{p as o,g as r,b as e}from"./p-fe5d9284.js";o().then(o=>(r(),e([["p-sbwpegjc",[[1,"bruit-core",{config:[1,"brt-config"],_bruitCoreConfig:[32],modalOpened:[32],modalBrtField:[32],modalError:[32],_bruitIoConfig:[32],newFeedback:[64],sendFeedback:[64]}],[1,"bruit-io",{config:[1,"brt-config"],data:[16],dataFn:[16],_config:[32]}],[0,"bruit-rating",{value:[1538],max:[1538],color:[1],offColor:[1,"off-color"],onBorderColor:[32]}],[0,"bruit-select",{id:[1],options:[16],value:[1],required:[4]}]]]],o))); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-37d9bcff.system.js"],(function(){"use strict";var o,e,r;return{setters:[function(t){o=t.p;e=t.g;r=t.b}],execute:function(){o().then((function(o){e();return r([["p-3oe8bwnt.system",[[1,"bruit-core",{config:[1,"brt-config"],_bruitCoreConfig:[32],modalOpened:[32],modalBrtField:[32],modalError:[32],_bruitIoConfig:[32],newFeedback:[64],sendFeedback:[64]}],[1,"bruit-io",{config:[1,"brt-config"],data:[16],dataFn:[16],_config:[32]}],[0,"bruit-rating",{value:[1538],max:[1538],color:[1],offColor:[1,"off-color"],onBorderColor:[32]}],[0,"bruit-select",{id:[1],options:[16],value:[1],required:[4]}]]]],o)}))}}})); | ||
System.register(["./p-37d9bcff.system.js"],(function(){"use strict";var o,e,r;return{setters:[function(t){o=t.p;e=t.g;r=t.b}],execute:function(){o().then((function(o){e();return r([["p-hld3pmfu.system",[[1,"bruit-core",{config:[1,"brt-config"],_bruitCoreConfig:[32],modalOpened:[32],modalBrtField:[32],modalError:[32],_bruitIoConfig:[32],newFeedback:[64],sendFeedback:[64]}],[1,"bruit-io",{config:[1,"brt-config"],data:[16],dataFn:[16],_config:[32]}],[0,"bruit-rating",{value:[1538],max:[1538],color:[1],offColor:[1,"off-color"],onBorderColor:[32]}],[0,"bruit-select",{id:[1],options:[16],value:[1],required:[4]}]]]],o)}))}}})); |
@@ -30,3 +30,3 @@ import { BrtFieldType } from '@bruit/types/dist/enums/brt-field-type'; | ||
ScreenTool.getScreenshot(this.bruitIoConfig).catch(err => { | ||
console.error('!!! An error occured with the screeshot, we send feedback without it. err=', err); | ||
console.error('!!! An error occured with html2canvas screenshot, we send feedback without it. err=', err); | ||
return Promise.resolve(null); | ||
@@ -77,7 +77,11 @@ }), | ||
*/ | ||
async getDataFromFn(dataFn) { | ||
getDataFromFn(dataFn) { | ||
// dataFn (function or promise) | ||
if (dataFn) { | ||
if (typeof dataFn === 'function') { | ||
return dataFn(); | ||
const dataFromFn = dataFn(); | ||
if (typeof dataFromFn === 'object' && dataFromFn.then) { | ||
return dataFromFn; | ||
} | ||
return Promise.resolve(dataFromFn); | ||
} | ||
@@ -89,3 +93,3 @@ else if (typeof dataFn === 'object' && dataFn.then) { | ||
else { | ||
return []; | ||
return Promise.resolve([]); | ||
} | ||
@@ -92,0 +96,0 @@ } |
{ | ||
"entries": [ | ||
"components\\bruit-rating\\bruit-rating.js", | ||
"components\\bruit-core\\bruit-core.js", | ||
"components\\bruit-select\\bruit-select.js", | ||
"components\\bruit-io\\bruit-io.js" | ||
"components/bruit-select/bruit-select.js", | ||
"components/bruit-io/bruit-io.js", | ||
"components/bruit-rating/bruit-rating.js", | ||
"components/bruit-core/bruit-core.js" | ||
], | ||
@@ -8,0 +8,0 @@ "compiler": { |
@@ -577,3 +577,3 @@ import { BrtFieldType } from '@bruit/types/dist/enums/brt-field-type'; | ||
"tags": [], | ||
"text": "emit bruit-error on internal error or config error\r\nex : BruitIo.addEventListener('onError',error=>...)" | ||
"text": "emit bruit-error on internal error or config error\nex : BruitIo.addEventListener('onError',error=>...)" | ||
}, | ||
@@ -619,3 +619,3 @@ "complexType": { | ||
"docs": { | ||
"text": "called on click on component\r\ninit a feedback, wait user submit, send feedback", | ||
"text": "called on click on component\ninit a feedback, wait user submit, send feedback", | ||
"tags": [] | ||
@@ -622,0 +622,0 @@ } |
@@ -80,3 +80,3 @@ import { h } from "@stencil/core"; | ||
h("svg", { viewBox: "0 0 96 96", width: "30", height: "30", xmlns: "http://www.w3.org/2000/svg" }, | ||
h("path", { d: "M73.3,35.3h-8.9c-1.4-2.5-3.4-4.6-5.8-6.2l5.2-5.2l-4.5-4.5l-6.9,6.9C51,26,49.6,25.8,48,25.8\r\ns-3,0.2-4.5,0.5l-6.9-6.9L32.2,24l5.1,5.2c-2.3,1.6-4.3,3.7-5.7,6.2h-8.9v6.3h6.6c-0.2,1-0.3,2.1-0.3,3.2V48h-6.3v6.3H29v3.2\r\nc0,1.1,0.1,2.1,0.3,3.2h-6.6V67h8.9c3.3,5.7,9.4,9.5,16.4,9.5s13.1-3.8,16.4-9.5h8.9v-6.3h-6.6c0.2-1,0.3-2.1,0.3-3.2v-3.2h6.3V48\r\nH67v-3.2c0-1.1-0.1-2.1-0.3-3.2h6.6V35.3z M54.3,60.7H41.7v-6.3h12.7V60.7z M54.3,48H41.7v-6.3h12.7V48z" })))); | ||
h("path", { d: "M73.3,35.3h-8.9c-1.4-2.5-3.4-4.6-5.8-6.2l5.2-5.2l-4.5-4.5l-6.9,6.9C51,26,49.6,25.8,48,25.8\ns-3,0.2-4.5,0.5l-6.9-6.9L32.2,24l5.1,5.2c-2.3,1.6-4.3,3.7-5.7,6.2h-8.9v6.3h6.6c-0.2,1-0.3,2.1-0.3,3.2V48h-6.3v6.3H29v3.2\nc0,1.1,0.1,2.1,0.3,3.2h-6.6V67h8.9c3.3,5.7,9.4,9.5,16.4,9.5s13.1-3.8,16.4-9.5h8.9v-6.3h-6.6c0.2-1,0.3-2.1,0.3-3.2v-3.2h6.3V48\nH67v-3.2c0-1.1-0.1-2.1-0.3-3.2h6.6V35.3z M54.3,60.7H41.7v-6.3h12.7V60.7z M54.3,48H41.7v-6.3h12.7V48z" })))); | ||
} | ||
@@ -161,3 +161,3 @@ } | ||
"tags": [], | ||
"text": "FN or PROMISE\r\nreturn field array to add in feedback" | ||
"text": "FN or PROMISE\nreturn field array to add in feedback" | ||
} | ||
@@ -177,3 +177,3 @@ } | ||
"tags": [], | ||
"text": "emit bruit-error on internal error or config error\r\nex : BruitIo.addEventListener('onError',error=>...)" | ||
"text": "emit bruit-error on internal error or config error\nex : BruitIo.addEventListener('onError',error=>...)" | ||
}, | ||
@@ -180,0 +180,0 @@ "complexType": { |
@@ -0,0 +0,0 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ (function () { |
@@ -0,0 +0,0 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { |
@@ -0,0 +0,0 @@ import { BrtFeedback } from '@bruit/types'; |
@@ -0,0 +0,0 @@ import { BrtCookies, BrtData, BrtFeedback, BrtField, BrtLog, BrtNavigatorInfo, BrtScreenInfo, BrtServiceWorker } from '@bruit/types'; |
@@ -0,0 +0,0 @@ export declare class ClickTool { |
@@ -0,0 +0,0 @@ import { BruitCoreConfig } from '../models/bruit-core-config.class'; |
@@ -0,0 +0,0 @@ export declare class HttpTool { |
@@ -0,0 +0,0 @@ import { BrtCookies, BrtNavigatorInfo, BrtNetwork, BrtPermissions, BrtServiceWorker, BrtServiceWorkerState, BrtStorageEstimate } from "@bruit/types"; |
@@ -0,0 +0,0 @@ import { BrtScreenInfo } from '@bruit/types'; |
@@ -0,0 +0,0 @@ export declare class UrlTool { |
@@ -0,0 +0,0 @@ import { BrtCoreConfig, BrtData, BrtError, BrtField } from '@bruit/types'; |
@@ -0,0 +0,0 @@ import { BrtConfig, BrtData } from '@bruit/types'; |
@@ -0,0 +0,0 @@ import { EventEmitter } from '../../stencil.core'; |
@@ -0,0 +0,0 @@ export declare class BruitSelect { |
@@ -0,0 +0,0 @@ export declare enum SubmitButtonState { |
@@ -0,0 +0,0 @@ export * from '@bruit/types/dist/enums/brt-field-type'; |
@@ -0,0 +0,0 @@ declare module "*.json" { |
@@ -0,0 +0,0 @@ import { BrtCoreConfig, BrtError } from '@bruit/types'; |
@@ -0,0 +0,0 @@ import { BrtConfig, BrtError, BrtField } from '@bruit/types'; |
export default function start(config: any): void; |
export declare function format(first: string, middle: string, last: string): string; |
{ | ||
"name": "@bruit/component", | ||
"version": "1.3.11", | ||
"version": "1.3.12-beta1", | ||
"description": "send your feedbacks with bruit.io", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,0 +0,0 @@ <p align="center"> |
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 too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46353
3067439
2