@perses-dev/static-list-variable-plugin 0.10.0-beta.2 → 0.10.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{StaticListVariable.8ee5c4e4.js → StaticListVariable.bfe5b88a.js} +5 -5
- package/__mf/js/async/{121.2bf56849.js → 121.4fe5fa3d.js} +2 -2
- package/__mf/js/async/{2.dfcdaddd.js → 2.097423e7.js} +1 -1
- package/__mf/js/async/{235.8403ebe9.js → 235.5d62cafb.js} +1 -1
- package/__mf/js/async/{274.a8977f92.js → 274.75778816.js} +2 -2
- package/__mf/js/async/{470.f9c6f2a1.js → 470.ad345a73.js} +2 -2
- package/__mf/js/async/{616.11e3f731.js → 616.4f25b662.js} +1 -1
- package/__mf/js/async/{797.22e8d64a.js → 797.7aba23f4.js} +4 -4
- package/__mf/js/async/{941.e8f074b2.js → 941.7f3fa083.js} +2 -2
- package/__mf/js/async/{__federation_expose_StaticListVariable.f499ba97.js → __federation_expose_StaticListVariable.d65e7d25.js} +1 -1
- package/__mf/js/{main.ee98f153.js → main.e18048de.js} +5 -5
- package/mf-manifest.json +11 -11
- package/mf-stats.json +11 -11
- package/package.json +4 -4
- /package/__mf/js/async/{121.2bf56849.js.LICENSE.txt → 121.4fe5fa3d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{274.a8977f92.js.LICENSE.txt → 274.75778816.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.f9c6f2a1.js.LICENSE.txt → 470.ad345a73.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{797.22e8d64a.js.LICENSE.txt → 797.7aba23f4.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.e8f074b2.js.LICENSE.txt → 941.7f3fa083.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 941.
|
|
2
|
-
"use strict";(self.
|
|
1
|
+
/*! For license information please see 941.7f3fa083.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.chunk_StaticListVariable_0_10_0_beta_3=self.chunk_StaticListVariable_0_10_0_beta_3||[]).push([["941"],{7470(e,r,t){var o=t(231);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},2192(e,r,t){var o=t(451),_=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),n=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};r.jsx=function(e,r,t){var o,f={},l=null,s=null;for(o in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(s=r.ref),r)a.call(r,o)&&!c.hasOwnProperty(o)&&(f[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===f[o]&&(f[o]=r[o]);return{$$typeof:_,type:e,key:l,ref:s,props:f,_owner:n.current}}},2540(e,r,t){e.exports=t(2192)},6604(e,r,t){t.r(r);var o=t(2540),_=t(451),a=t.n(_);t(7470).createRoot(document.getElementById("root")).render((0,o.jsx)(a().StrictMode,{}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.
|
|
1
|
+
"use strict";(self.chunk_StaticListVariable_0_10_0_beta_3=self.chunk_StaticListVariable_0_10_0_beta_3||[]).push([["983"],{1150(e,l,a){a.r(l),a.d(l,{StaticListVariable:()=>d});var t=a(2540),n=a(7601),i=a(5684),s=a(6104),r=a(6404),u=a(2551),o=a(1010),p=a(451);let d={getVariableOptions:async e=>{var l;return{data:null==(l=e.values)?void 0:l.map(e=>"string"==typeof e?{label:e,value:e}:e)}},dependsOn:()=>({variables:[]}),OptionsEditorComponent:function(e){let{value:{values:l=[]},onChange:a}=e,[d,v]=(0,p.useState)(""),c=(0,p.useCallback)((e,t)=>{let n=t.pop();l.map(e=>"string"==typeof e?e:(null==e?void 0:e.value)||"").some(e=>e===n)||a({values:[...l,{value:String(n),label:String(n)}]})},[a,l]),b=(0,p.useCallback)(e=>{let t=e.clipboardData.getData("text/plain");if(t){let n=t.split(",").filter(e=>!l.map(e=>(null==e?void 0:e.value)||String(e)).some(l=>l===e)).map(e=>({value:e.trim(),label:""}));a({values:[...l,...n]}),e.preventDefault()}},[a,l]),g=(0,p.useCallback)(e=>{a({values:[...l.filter(l=>l!==e&&(null==l?void 0:l.value)!==e)]}),v("")},[l,a]),f=(0,p.useCallback)(e=>{let u=(e,a)=>!e||!a||l.filter(e=>"string"!=typeof e).some(e=>(null==e?void 0:e.label)===a)?l:l.map(l=>"string"==typeof l||l.value!==e?l:{label:a,value:l.value});return e.map((e,p)=>{let c=l[p];if(!c)return null;let b={value:"",label:""};"string"==typeof c?(b.value=c,b.label=c):(b.value=c.value,b.label=c.label||c.value);let f=(null==c?void 0:c.value)||c;return(0,t.jsx)(n.A,{sx:{margin:"4px"},label:d!==f?(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,t.jsx)(i.A,{variant:"body2",children:b.value}),(null==b?void 0:b.value)!==(null==b?void 0:b.label)&&(0,t.jsx)(i.A,{variant:"body2",sx:{backgroundColor:e=>e.palette.grey[200],color:e=>e.palette.text.primary,padding:"4px 8px",borderRadius:"4px",fontWeight:500},children:b.label}),"string"!=typeof c&&b.value===b.label&&(0,t.jsx)(s.A,{size:"small",onClick:e=>{e.stopPropagation(),v(f)},sx:{color:e=>e.palette.action.disabled},children:(0,t.jsx)(o.default,{fontSize:"small"})})]}):(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,t.jsx)("span",{children:f}),(0,t.jsx)(r.A,{defaultValue:b.label,onBlur:e=>{let{target:{value:l}}=e;l&&a({values:u(f,l)}),v("")},onKeyDown:e=>{if("Enter"===e.key){let{value:l}=e.target;a({values:u(f,l)}),v("")}else"Escape"===e.key&&v("")},size:"small",autoFocus:!0,sx:{width:"100%",padding:0,margin:0,backgroundColor:e=>e.palette.background.default,"& .MuiInputBase-root":{fontSize:"0.875rem",padding:0},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},inputProps:{style:{padding:0}}})]}),onDelete:()=>{g(f)}},f)})},[l,g,d,a]);return(0,t.jsx)("div",{children:(0,t.jsx)(u.A,{onPaste:b,multiple:!0,value:l.map(e=>"string"==typeof e?e:e.label||e.value),onChange:c,options:[],freeSolo:!0,clearOnBlur:!0,readOnly:e.isReadonly,renderTags:f,renderInput:e=>(0,t.jsx)(r.A,{...e,label:"Values",placeholder:"Values",helperText:'Type new value then press "Enter" to add. Optionally define a label by clicking on the "+" button.',onKeyDown:l=>{"Backspace"!==l.key||e.inputProps.value||l.stopPropagation()}})})})},createInitialOptions:()=>({values:[]})}}}]);
|