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

@react-querybuilder/bulma

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-querybuilder/bulma - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

2

dist/index.cjs.js

@@ -27,3 +27,3 @@ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const O=require("react-querybuilder"),Ie=require("react"),mr=f=>f&&typeof f=="object"&&"default"in f?f:{default:f},Be=mr(Ie);var le={exports:{}},L={};/**

Check the top-level render call using <`+t+">.")}return r}}function ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(je[t])return;je[t]=!0;var n="";e&&e._owner&&e._owner!==ae.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),I(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function Ae(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var n=e[t];ie(n)&&ke(n,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var i=m(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)ie(o.value)&&ke(o.value,r)}}}function cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===s||r.$$typeof===S))t=r.propTypes;else return;if(t){var n=j(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var i=j(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Fe(e,r,t,n,i,u){{var o=Le(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=ur(i);_?a+=_:a+=Oe();var v;e===null?v="null":te(e)?v="array":e!==void 0&&e.$$typeof===p?(v="<"+(j(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,a)}var h=ir(e,r,t,i,u);if(h==null)return h;if(o){var w=r.children;if(w!==void 0)if(n)if(te(w)){for(var B=0;B<w.length;B++)Ae(w[B],e);Object.freeze&&Object.freeze(w)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(w,e)}return e===c?sr(h):cr(h),h}}function fr(e,r,t){return Fe(e,r,t,!0)}function dr(e,r,t){return Fe(e,r,t,!1)}var vr=dr,pr=fr;M.Fragment=c,M.jsx=vr,M.jsxs=pr}()),M}(function(f){process.env.NODE_ENV==="production"?f.exports=hr():f.exports=gr()})(le);const R=le.exports.jsx,ue=le.exports.jsxs,P=({className:f,handleOnClick:p,label:b,title:c,disabled:g,disabledTranslation:d})=>R("button",{type:"button",className:`button is-small ${f}`,title:d&&g?d.title:c,onClick:y=>p(y),disabled:g&&!d,children:d&&g?d.label:b});P.displayName="BulmaActionElement";const ce=({className:f,handleOnChange:p,label:b,checked:c,title:g,disabled:d})=>ue("label",{className:`${f} checkbox`,title:g,children:[R("input",{type:"checkbox",disabled:d,checked:c,onChange:y=>p(y.target.checked)}),b]});ce.displayName="BulmaNotToggle";const A=({className:f,handleOnChange:p,options:b,value:c,title:g,disabled:d,multiple:y,listsAsArrays:C})=>{const s=Ie.useMemo(()=>y?l=>{const S=Array.from(l.target.selectedOptions).map(x=>x.value);p(C?S:O.joinWith(S,","))}:l=>p(l.target.value),[p,C,y]),T=y?Array.isArray(c)?c:O.splitBy(c,","):c;return R("div",{title:g,className:`${f} select is-small`,children:R("select",{value:T,multiple:!!y,disabled:d,onChange:s,children:O.toOptions(b)})})};A.displayName="BulmaValueSelector";const se=({fieldData:f,operator:p,value:b,handleOnChange:c,title:g,className:d,type:y,inputType:C,values:s=[],listsAsArrays:T,disabled:l,testID:S,...x})=>{var q;if(O.useValueEditor({handleOnChange:c,inputType:C,operator:p,value:b}),p==="null"||p==="notNull")return null;const D=(q=f==null?void 0:f.placeholder)!=null?q:"",U=["between","notBetween","in","notIn"].includes(p)?"text":C||"text";if((p==="between"||p==="notBetween")&&y==="select"){const m=O.toArray(b),F=W=>{var G,J;const $=[W,(J=m[1])!=null?J:(G=s[0])==null?void 0:G.name,...m.slice(2)];c(T?$:O.joinWith($,","))},E=W=>{const $=[m[0],W,...m.slice(2)];c(T?$:O.joinWith($,","))};return ue("span",{"data-testid":S,className:d,title:g,children:[R(A,{...x,className:O.standardClassnames.valueListItem,handleOnChange:F,disabled:l,value:m[0],options:s,listsAsArrays:T}),R(A,{...x,className:O.standardClassnames.valueListItem,handleOnChange:E,disabled:l,value:m[1],options:s,listsAsArrays:T})]})}switch(y){case"select":case"multiselect":return R(A,{...x,title:g,className:d,handleOnChange:c,options:s,value:b,disabled:l,multiple:y==="multiselect",listsAsArrays:T});case"textarea":return R("div",{className:`${d} control`,children:R("textarea",{value:b,title:g,disabled:l,className:"textarea",placeholder:D,onChange:m=>c(m.target.value)})});case"switch":case"checkbox":return R("label",{title:g,className:`${d} checkbox`,children:R("input",{type:"checkbox",checked:!!b,disabled:l,onChange:m=>c(m.target.checked)})});case"radio":return R("div",{className:`${d} control`,title:g,children:s.map(m=>ue("label",{className:"radio",children:[R("input",{type:"radio",value:m.name,checked:b===m.name,onChange:()=>c(m.name),disabled:l}),m.label]},m.name))})}return R("div",{className:`${d} control`,children:R("input",{type:U,value:b,title:g,disabled:l,className:"input is-small",placeholder:D,onChange:m=>c(m.target.value)})})};se.displayName="BulmaValueEditor";const yr="5.0.0",We={notToggle:ce,valueEditor:se,addGroupAction:P,addRuleAction:P,cloneGroupAction:P,cloneRuleAction:P,combinatorSelector:A,fieldSelector:A,operatorSelector:A,lockRuleAction:P,lockGroupAction:P,removeGroupAction:P,removeRuleAction:P,valueSourceSelector:A},br=O.getCompatContextProvider({key:"bulma",controlElements:We});exports.BulmaActionElement=P;exports.BulmaNotToggle=ce;exports.BulmaValueEditor=se;exports.BulmaValueSelector=A;exports.QueryBuilderBulma=br;exports.bulmaControlElements=We;exports.version=yr;
Check the top-level render call using <`+t+">.")}return r}}function ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(je[t])return;je[t]=!0;var n="";e&&e._owner&&e._owner!==ae.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),I(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function Ae(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var n=e[t];ie(n)&&ke(n,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var i=m(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)ie(o.value)&&ke(o.value,r)}}}function cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===s||r.$$typeof===S))t=r.propTypes;else return;if(t){var n=j(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var i=j(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Fe(e,r,t,n,i,u){{var o=Le(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=ur(i);_?a+=_:a+=Oe();var v;e===null?v="null":te(e)?v="array":e!==void 0&&e.$$typeof===p?(v="<"+(j(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,a)}var h=ir(e,r,t,i,u);if(h==null)return h;if(o){var w=r.children;if(w!==void 0)if(n)if(te(w)){for(var B=0;B<w.length;B++)Ae(w[B],e);Object.freeze&&Object.freeze(w)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(w,e)}return e===c?sr(h):cr(h),h}}function fr(e,r,t){return Fe(e,r,t,!0)}function dr(e,r,t){return Fe(e,r,t,!1)}var vr=dr,pr=fr;M.Fragment=c,M.jsx=vr,M.jsxs=pr}()),M}(function(f){process.env.NODE_ENV==="production"?f.exports=hr():f.exports=gr()})(le);const R=le.exports.jsx,ue=le.exports.jsxs,P=({className:f,handleOnClick:p,label:b,title:c,disabled:g,disabledTranslation:d})=>R("button",{type:"button",className:`button is-small ${f}`,title:d&&g?d.title:c,onClick:y=>p(y),disabled:g&&!d,children:d&&g?d.label:b});P.displayName="BulmaActionElement";const ce=({className:f,handleOnChange:p,label:b,checked:c,title:g,disabled:d})=>ue("label",{className:`${f} checkbox`,title:g,children:[R("input",{type:"checkbox",disabled:d,checked:c,onChange:y=>p(y.target.checked)}),b]});ce.displayName="BulmaNotToggle";const A=({className:f,handleOnChange:p,options:b,value:c,title:g,disabled:d,multiple:y,listsAsArrays:C})=>{const s=Ie.useMemo(()=>y?l=>{const S=Array.from(l.target.selectedOptions).map(x=>x.value);p(C?S:O.joinWith(S,","))}:l=>p(l.target.value),[p,C,y]),T=y?Array.isArray(c)?c:O.splitBy(c,","):c;return R("div",{title:g,className:`${f} select is-small`,children:R("select",{value:T,multiple:!!y,disabled:d,onChange:s,children:O.toOptions(b)})})};A.displayName="BulmaValueSelector";const se=({fieldData:f,operator:p,value:b,handleOnChange:c,title:g,className:d,type:y,inputType:C,values:s=[],listsAsArrays:T,disabled:l,testID:S,...x})=>{var q;if(O.useValueEditor({handleOnChange:c,inputType:C,operator:p,value:b}),p==="null"||p==="notNull")return null;const D=(q=f==null?void 0:f.placeholder)!=null?q:"",U=["between","notBetween","in","notIn"].includes(p)?"text":C||"text";if((p==="between"||p==="notBetween")&&y==="select"){const m=O.toArray(b),F=W=>{var G,J;const $=[W,(J=m[1])!=null?J:(G=s[0])==null?void 0:G.name,...m.slice(2)];c(T?$:O.joinWith($,","))},E=W=>{const $=[m[0],W,...m.slice(2)];c(T?$:O.joinWith($,","))};return ue("span",{"data-testid":S,className:d,title:g,children:[R(A,{...x,className:O.standardClassnames.valueListItem,handleOnChange:F,disabled:l,value:m[0],options:s,listsAsArrays:T}),R(A,{...x,className:O.standardClassnames.valueListItem,handleOnChange:E,disabled:l,value:m[1],options:s,listsAsArrays:T})]})}switch(y){case"select":case"multiselect":return R(A,{...x,title:g,className:d,handleOnChange:c,options:s,value:b,disabled:l,multiple:y==="multiselect",listsAsArrays:T});case"textarea":return R("div",{className:`${d} control`,children:R("textarea",{value:b,title:g,disabled:l,className:"textarea",placeholder:D,onChange:m=>c(m.target.value)})});case"switch":case"checkbox":return R("label",{title:g,className:`${d} checkbox`,children:R("input",{type:"checkbox",checked:!!b,disabled:l,onChange:m=>c(m.target.checked)})});case"radio":return R("div",{className:`${d} control`,title:g,children:s.map(m=>ue("label",{className:"radio",children:[R("input",{type:"radio",value:m.name,checked:b===m.name,onChange:()=>c(m.name),disabled:l}),m.label]},m.name))})}return R("div",{className:`${d} control`,children:R("input",{type:U,value:b,title:g,disabled:l,className:"input is-small",placeholder:D,onChange:m=>c(m.target.value)})})};se.displayName="BulmaValueEditor";const yr="5.1.0",We={notToggle:ce,valueEditor:se,addGroupAction:P,addRuleAction:P,cloneGroupAction:P,cloneRuleAction:P,combinatorSelector:A,fieldSelector:A,operatorSelector:A,lockRuleAction:P,lockGroupAction:P,removeGroupAction:P,removeRuleAction:P,valueSourceSelector:A},br=O.getCompatContextProvider({key:"bulma",controlElements:We});exports.BulmaActionElement=P;exports.BulmaNotToggle=ce;exports.BulmaValueEditor=se;exports.BulmaValueSelector=A;exports.QueryBuilderBulma=br;exports.bulmaControlElements=We;exports.version=yr;
//# sourceMappingURL=index.cjs.js.map

@@ -807,3 +807,3 @@ import { joinWith as ie, splitBy as pr, toOptions as mr, useValueEditor as hr, toArray as gr, standardClassnames as Fe, getCompatContextProvider as yr } from "react-querybuilder";

We.displayName = "BulmaValueEditor";
const Sr = "5.0.0", _r = {
const Sr = "5.1.0", _r = {
notToggle: Ie,

@@ -810,0 +810,0 @@ valueEditor: We,

{
"name": "@react-querybuilder/bulma",
"description": "Custom Bulma components for react-querybuilder",
"version": "5.0.0",
"version": "5.1.0",
"publishConfig": {

@@ -28,3 +28,3 @@ "access": "public"

"devDependencies": {
"@react-querybuilder/ts": "^5.0.0",
"@react-querybuilder/ts": "^5.1.0",
"@testing-library/react": "^13.4.0",

@@ -36,3 +36,3 @@ "@types/react": "^18.0.21",

"react-dom": "^18.2.0",
"react-querybuilder": "^5.0.0",
"react-querybuilder": "^5.1.0",
"typescript": "^4.8.4",

@@ -45,3 +45,3 @@ "vite": "^3.1.8"

},
"gitHead": "4d33e8770f9ea55ee1927a816f7731ebbb7009f1"
"gitHead": "98671ad3d06c4f66d7fc4eb8a9c6fd24cae89b02"
}
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