From 4c0d4e26e11e104948b5bd2caefdafcc82cc7389 Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Thu, 21 Mar 2024 16:23:40 +0100 Subject: [PATCH] Update: Add hightlight state and improve color list --- .../Private/Editor/ColorValuesEditor/index.js | 25 ++- .../Editor/ColorValuesEditor/style.module.css | 23 ++- Resources/Public/Plugin.css | 2 +- Resources/Public/Plugin.css.map | 4 +- Resources/Public/Plugin.js | 2 +- Resources/Public/Plugin.js.map | 6 +- package.json | 28 +-- pnpm-lock.yaml | 160 +++++++++--------- 8 files changed, 137 insertions(+), 113 deletions(-) diff --git a/Resources/Private/Editor/ColorValuesEditor/index.js b/Resources/Private/Editor/ColorValuesEditor/index.js index 88a8a1f..8a4fa33 100644 --- a/Resources/Private/Editor/ColorValuesEditor/index.js +++ b/Resources/Private/Editor/ColorValuesEditor/index.js @@ -26,7 +26,7 @@ function Editor(props) { const { commit, value, highlight, i18nRegistry } = props; const { disabled, values } = options; - const previewBoxAttributes = (value, placeholder) => { + const previewBoxAttributes = (value, highlight, placeholder) => { const hasValue = value && Object.prototype.hasOwnProperty.call(values, value); const color = hasValue ? values[value].color : placeholder; const title = hasValue ? i18nRegistry.translate(values[value].label) : null; @@ -40,6 +40,10 @@ function Editor(props) { classNames.push(style.checkboard); } + if (highlight) { + classNames.push(style.highlight); + } + return { className: classNames.filter((item) => !!item).join(" "), style: { backgroundColor: color }, @@ -64,10 +68,12 @@ function Editor(props) { }); } + const fixedButton = valueArray.length > 9; + return (
-
+
{allowEmpty && (
- {valueArray.map((item) => { + {valueArray.map((item, index) => { return item.color ? ( ) : ( -
{item.label}
+
+ {item.label} +
); })}
diff --git a/Resources/Private/Editor/ColorValuesEditor/style.module.css b/Resources/Private/Editor/ColorValuesEditor/style.module.css index 45987b1..d50a720 100644 --- a/Resources/Private/Editor/ColorValuesEditor/style.module.css +++ b/Resources/Private/Editor/ColorValuesEditor/style.module.css @@ -10,10 +10,15 @@ padding: 10px 16px; } +.highlight { + box-shadow: 0 0 0 2px #ff8700; +} + .feedback { flex: 1; height: 40px; border: 1px solid #3f3f3f; + border-radius: 2px; } .transparent, @@ -30,11 +35,11 @@ flex: 1; position: relative; display: flex; + justify-content: flex-start; flex-wrap: wrap; - justify-content: space-between; - gap: 10px; - margin-top: 10px; - padding-top: 15px; + gap: 8px; + margin-top: 8px; + padding-top: 8px; border-top: 1px solid #3f3f3f; } @@ -46,10 +51,14 @@ .item { border: 1px solid #3f3f3f; border-radius: 2px; - width: 18px; - height: 18px; + height: 24px; cursor: pointer; - flex: 0 0 18px; + flex: 1 0 24px; + padding: 0; +} + +.itemFixed { + flex-grow: 0; } .item:hover, diff --git a/Resources/Public/Plugin.css b/Resources/Public/Plugin.css index 7ac9e9d..c9ecc29 100644 --- a/Resources/Public/Plugin.css +++ b/Resources/Public/Plugin.css @@ -1,2 +1,2 @@ -.carbon-colorvalueseditor-7MJkYa-wrapper{display:flex}.carbon-colorvalueseditor-7MJkYa-error{color:#fff;background-color:#ff460d;margin-left:-16px;margin-right:-16px;padding:10px 16px}.carbon-colorvalueseditor-7MJkYa-feedback{border:1px solid #3f3f3f;flex:1;height:40px}.carbon-colorvalueseditor-7MJkYa-transparent,.carbon-colorvalueseditor-7MJkYa-checkboard{background-image:url('data:image/svg+xml, ');background-size:16px 16px}.carbon-colorvalueseditor-7MJkYa-transparent{background-color:#fff!important}.carbon-colorvalueseditor-7MJkYa-list{border-top:1px solid #3f3f3f;flex-wrap:wrap;flex:1;justify-content:space-between;gap:10px;margin-top:10px;padding-top:15px;display:flex;position:relative}.carbon-colorvalueseditor-7MJkYa-label{flex:1 0 100%;margin-bottom:-10px}.carbon-colorvalueseditor-7MJkYa-item{cursor:pointer;border:1px solid #3f3f3f;-webkit-border-radius:2px;border-radius:2px;flex:0 0 18px;width:18px;height:18px}.carbon-colorvalueseditor-7MJkYa-item:hover{box-shadow:0 0 0 1px #00adee}.carbon-colorvalueseditor-7MJkYa-item:focus{box-shadow:0 0 0 1px #00adee}.carbon-colorvalueseditor-7MJkYa-disabled,.carbon-colorvalueseditor-7MJkYa-item[disabled]{cursor:not-allowed;opacity:.65}.carbon-colorvalueseditor-7MJkYa-disabled>*{pointer-events:none}.carbon-colorvalueseditor-7MJkYa-reset{margin-left:10px} +.carbon-colorvalueseditor-7MJkYa-wrapper{display:flex}.carbon-colorvalueseditor-7MJkYa-error{color:#fff;background-color:#ff460d;margin-left:-16px;margin-right:-16px;padding:10px 16px}.carbon-colorvalueseditor-7MJkYa-highlight{box-shadow:0 0 0 2px #ff8700}.carbon-colorvalueseditor-7MJkYa-feedback{border:1px solid #3f3f3f;-webkit-border-radius:2px;border-radius:2px;flex:1;height:40px}.carbon-colorvalueseditor-7MJkYa-transparent,.carbon-colorvalueseditor-7MJkYa-checkboard{background-image:url('data:image/svg+xml, ');background-size:16px 16px}.carbon-colorvalueseditor-7MJkYa-transparent{background-color:#fff!important}.carbon-colorvalueseditor-7MJkYa-list{border-top:1px solid #3f3f3f;flex-wrap:wrap;flex:1;justify-content:flex-start;gap:8px;margin-top:8px;padding-top:8px;display:flex;position:relative}.carbon-colorvalueseditor-7MJkYa-label{flex:1 0 100%;margin-bottom:-10px}.carbon-colorvalueseditor-7MJkYa-item{cursor:pointer;border:1px solid #3f3f3f;-webkit-border-radius:2px;border-radius:2px;flex:1 0 24px;height:24px;padding:0}.carbon-colorvalueseditor-7MJkYa-itemFixed{flex-grow:0}.carbon-colorvalueseditor-7MJkYa-item:hover{box-shadow:0 0 0 1px #00adee}.carbon-colorvalueseditor-7MJkYa-item:focus{box-shadow:0 0 0 1px #00adee}.carbon-colorvalueseditor-7MJkYa-disabled,.carbon-colorvalueseditor-7MJkYa-item[disabled]{cursor:not-allowed;opacity:.65}.carbon-colorvalueseditor-7MJkYa-disabled>*{pointer-events:none}.carbon-colorvalueseditor-7MJkYa-reset{margin-left:10px} /*# sourceMappingURL=Plugin.css.map */ diff --git a/Resources/Public/Plugin.css.map b/Resources/Public/Plugin.css.map index 49f996f..1eadd78 100644 --- a/Resources/Public/Plugin.css.map +++ b/Resources/Public/Plugin.css.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../Private/Editor/ColorValuesEditor/style.module.css"], - "sourcesContent": [".wrapper {\n display: flex;\n}\n\n.error {\n background-color: #ff460d;\n color: #fff;\n margin-left: -16px;\n margin-right: -16px;\n padding: 10px 16px;\n}\n\n.feedback {\n flex: 1;\n height: 40px;\n border: 1px solid #3f3f3f;\n}\n\n.transparent,\n.checkboard {\n background-image: url('data:image/svg+xml, ');\n background-size: 16px 16px;\n}\n\n.transparent {\n background-color: #fff !important;\n}\n\n.list {\n flex: 1;\n position: relative;\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n gap: 10px;\n margin-top: 10px;\n padding-top: 15px;\n border-top: 1px solid #3f3f3f;\n}\n\n.label {\n flex: 1 0 100%;\n margin-bottom: -10px;\n}\n\n.item {\n border: 1px solid #3f3f3f;\n border-radius: 2px;\n width: 18px;\n height: 18px;\n cursor: pointer;\n flex: 0 0 18px;\n}\n\n.item:hover,\n.item:focus {\n box-shadow: 0 0 0 1px #00adee;\n}\n\n.item[disabled],\n.disabled {\n cursor: not-allowed;\n opacity: 0.65;\n}\n\n.disabled > * {\n pointer-events: none;\n}\n\n.reset {\n margin-left: 10px;\n}\n"], - "mappings": "AAAA,CAAA,qDAIA,CAAA,+GAJA,kBAYA,CAAA,qFAMA,CAAA,4CAAA,CAAA,8RAMA,CANA,4EAUA,CAAA,+LAYA,CAAA,wEAKA,CAAA,uGA7CA,uDAsDA,CATA,oCASA,oCAAA,CATA,oCASA,oCAKA,CAAA,yCAAA,CAdA,oCAcA,CAAA,yCAMA,CANA,wCAMA,CAAA,sBAIA,CAAA", + "sourcesContent": [".wrapper {\n display: flex;\n}\n\n.error {\n background-color: #ff460d;\n color: #fff;\n margin-left: -16px;\n margin-right: -16px;\n padding: 10px 16px;\n}\n\n.highlight {\n box-shadow: 0 0 0 2px #ff8700;\n}\n\n.feedback {\n flex: 1;\n height: 40px;\n border: 1px solid #3f3f3f;\n border-radius: 2px;\n}\n\n.transparent,\n.checkboard {\n background-image: url('data:image/svg+xml, ');\n background-size: 16px 16px;\n}\n\n.transparent {\n background-color: #fff !important;\n}\n\n.list {\n flex: 1;\n position: relative;\n display: flex;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 8px;\n padding-top: 8px;\n border-top: 1px solid #3f3f3f;\n}\n\n.label {\n flex: 1 0 100%;\n margin-bottom: -10px;\n}\n\n.item {\n border: 1px solid #3f3f3f;\n border-radius: 2px;\n height: 24px;\n cursor: pointer;\n flex: 1 0 24px;\n padding: 0;\n}\n\n.itemFixed {\n flex-grow: 0;\n}\n\n.item:hover,\n.item:focus {\n box-shadow: 0 0 0 1px #00adee;\n}\n\n.item[disabled],\n.disabled {\n cursor: not-allowed;\n opacity: 0.65;\n}\n\n.disabled > * {\n pointer-events: none;\n}\n\n.reset {\n margin-left: 10px;\n}\n"], + "mappings": "AAAA,CAAA,qDAIA,CAAA,+GAJA,kBAYA,CAAA,uEAIA,CAAA,4FAhBA,qCAuBA,CAAA,4CAAA,CAAA,8RAMA,CANA,4EAUA,CAAA,yLAYA,CAAA,wEAKA,CAAA,uGAlDA,4CAAA,UA2DA,CAAA,sDAIA,CAbA,oCAaA,oCAAA,CAbA,oCAaA,oCAKA,CAAA,yCAAA,CAlBA,oCAkBA,CAAA,yCAMA,CANA,wCAMA,CAAA,sBAIA,CAAA", "names": [] } diff --git a/Resources/Public/Plugin.js b/Resources/Public/Plugin.js index 2c492ac..d11d2e6 100644 --- a/Resources/Public/Plugin.js +++ b/Resources/Public/Plugin.js @@ -1,2 +1,2 @@ -(()=>{var B=Object.create;var I=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var D=(e,t)=>()=>(e&&(t=e(e=0)),t);var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var E=(e,t,s,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of j(t))!z.call(e,n)&&n!==s&&I(e,n,{get:()=>t[n],enumerable:!(u=F(t,n))||u.enumerable});return e};var m=(e,t,s)=>(s=e!=null?B(V(e)):{},E(t||!e||!e.__esModule?I(s,"default",{value:e,enumerable:!0}):s,e));function a(e){return(...t)=>{if(window["@Neos:HostPluginAPI"]&&window["@Neos:HostPluginAPI"][`@${e}`])return window["@Neos:HostPluginAPI"][`@${e}`](...t);throw new Error("You are trying to read from a consumer api that hasn't been initialized yet!")}}var d=D(()=>{});var C=f((Ie,w)=>{d();w.exports=a("vendor")().React});var O=f((ye,A)=>{d();A.exports=a("NeosProjectPackages")().NeosUiDecorators});var G=f((Ce,v)=>{d();v.exports=a("NeosProjectPackages")().ReactUiComponents});d();var y=a("manifest");var i=m(C()),Z=m(O()),Y=m(G());var r={list:"carbon-colorvalueseditor-7MJkYa-list",error:"carbon-colorvalueseditor-7MJkYa-error",label:"carbon-colorvalueseditor-7MJkYa-label",disabled:"carbon-colorvalueseditor-7MJkYa-disabled",feedback:"carbon-colorvalueseditor-7MJkYa-feedback",checkboard:"carbon-colorvalueseditor-7MJkYa-checkboard",wrapper:"carbon-colorvalueseditor-7MJkYa-wrapper",transparent:"carbon-colorvalueseditor-7MJkYa-transparent",reset:"carbon-colorvalueseditor-7MJkYa-reset",item:"carbon-colorvalueseditor-7MJkYa-item"};var L=(0,Z.neos)(e=>({i18nRegistry:e.get("i18n"),config:e.get("frontendConfiguration").get("Carbon.RangeEditor")})),R={options:{allowEmpty:!0,disabled:!1,placeholder:null,resetLabel:"Reset"}};function P(e){let t=()=>{e.commit("")},s={...R.options,...e.options},{commit:u,value:n,highlight:Q,i18nRegistry:b}=e,{disabled:T,values:c}=s,M=(o,l)=>{let p=o&&Object.prototype.hasOwnProperty.call(c,o),J=p?c[o].color:l,N=p?b.translate(c[o].label):null,g=[r.feedback];return(o=="transparent"||!p&&l=="transparent")&&g.push(r.transparent),!p&&!l&&g.push(r.checkboard),{className:g.filter(W=>!!W).join(" "),style:{backgroundColor:J},title:N}};if(!c)return i.default.createElement("div",{className:r.error},"No color values defined, please add them to your YAML configuration");let X=s.allowEmpty||Object.prototype.hasOwnProperty.call(c,""),h=[];for(let o in c){let l=c[o];h.push({label:b.translate(l.label),color:l.color,disabled:l.disabled,key:o})}return i.default.createElement("div",{className:s.disabled&&r.disabled},i.default.createElement("div",{className:r.wrapper},i.default.createElement("div",{...M(n,s.placeholder)}),X&&i.default.createElement("div",{className:r.reset},i.default.createElement(Y.IconButton,{style:"lighter",icon:"times",title:b.translate(s.resetLabel),onClick:t}))),i.default.createElement("div",{className:r.list},h.map(o=>o.color?i.default.createElement("button",{className:[r.item,o.color=="transparent"&&r.transparent].join(" "),disabled:o.disabled,style:{backgroundColor:o.color},title:o.label,onClick:()=>u(o.key)}):i.default.createElement("div",{className:r.label},o.label))))}var k=L(P);y("Carbon.ColorValues:Editor",{},e=>{e.get("inspector").get("editors").set("Carbon.ColorValues/Editor",{component:k})});})(); +(()=>{var F=Object.create;var x=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var Q=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var R=(e,t,s,g)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of D(t))!H.call(e,c)&&c!==s&&x(e,c,{get:()=>t[c],enumerable:!(g=V(t,c))||g.enumerable});return e};var I=(e,t,s)=>(s=e!=null?F(E(e)):{},R(t||!e||!e.__esModule?x(s,"default",{value:e,enumerable:!0}):s,e));function a(e){return(...t)=>{if(window["@Neos:HostPluginAPI"]&&window["@Neos:HostPluginAPI"][`@${e}`])return window["@Neos:HostPluginAPI"][`@${e}`](...t);throw new Error("You are trying to read from a consumer api that hasn't been initialized yet!")}}var u=Q(()=>{});var O=h((ye,A)=>{u();A.exports=a("vendor")().React});var v=h((Ae,w)=>{u();w.exports=a("NeosProjectPackages")().NeosUiDecorators});var k=h((we,G)=>{u();G.exports=a("NeosProjectPackages")().ReactUiComponents});u();var C=a("manifest");var i=I(O()),B=I(v()),M=I(k());var r={reset:"carbon-colorvalueseditor-7MJkYa-reset",transparent:"carbon-colorvalueseditor-7MJkYa-transparent",item:"carbon-colorvalueseditor-7MJkYa-item",wrapper:"carbon-colorvalueseditor-7MJkYa-wrapper",itemFixed:"carbon-colorvalueseditor-7MJkYa-itemFixed",list:"carbon-colorvalueseditor-7MJkYa-list",label:"carbon-colorvalueseditor-7MJkYa-label",highlight:"carbon-colorvalueseditor-7MJkYa-highlight",checkboard:"carbon-colorvalueseditor-7MJkYa-checkboard",error:"carbon-colorvalueseditor-7MJkYa-error",feedback:"carbon-colorvalueseditor-7MJkYa-feedback",disabled:"carbon-colorvalueseditor-7MJkYa-disabled"};var U=(0,B.neos)(e=>({i18nRegistry:e.get("i18n"),config:e.get("frontendConfiguration").get("Carbon.RangeEditor")})),P={options:{allowEmpty:!0,disabled:!1,placeholder:null,resetLabel:"Reset"}};function S(e){let t=()=>{e.commit("")},s={...P.options,...e.options},{commit:g,value:c,highlight:Z,i18nRegistry:f}=e,{disabled:_,values:l}=s,W=(o,n,d)=>{let b=o&&Object.prototype.hasOwnProperty.call(l,o),N=b?l[o].color:d,z=b?f.translate(l[o].label):null,p=[r.feedback];return(o=="transparent"||!b&&d=="transparent")&&p.push(r.transparent),!b&&!d&&p.push(r.checkboard),n&&p.push(r.highlight),{className:p.filter(j=>!!j).join(" "),style:{backgroundColor:N},title:z}};if(!l)return i.default.createElement("div",{className:r.error},"No color values defined, please add them to your YAML configuration");let Y=s.allowEmpty||Object.prototype.hasOwnProperty.call(l,""),m=[];for(let o in l){let n=l[o];m.push({label:f.translate(n.label),color:n.color,disabled:n.disabled,key:o})}let J=m.length>9;return i.default.createElement("div",{className:s.disabled&&r.disabled},i.default.createElement("div",{className:r.wrapper},i.default.createElement("div",{...W(c,Z,s.placeholder)}),Y&&i.default.createElement("div",{className:r.reset},i.default.createElement(M.IconButton,{style:"lighter",icon:"times",title:f.translate(s.resetLabel),onClick:t}))),i.default.createElement("div",{className:r.list},m.map((o,n)=>o.color?i.default.createElement("button",{key:n,className:[r.item,o.color=="transparent"&&r.transparent,J&&r.itemFixed].filter(d=>!!d).join(" "),disabled:o.disabled,style:{backgroundColor:o.color},title:o.label,onClick:()=>g(o.key)}):i.default.createElement("div",{key:n,className:r.label},o.label))))}var X=U(S);C("Carbon.ColorValues:Editor",{},e=>{e.get("inspector").get("editors").set("Carbon.ColorValues/Editor",{component:X})});})(); //# sourceMappingURL=Plugin.js.map diff --git a/Resources/Public/Plugin.js.map b/Resources/Public/Plugin.js.map index f894bde..09ed440 100644 --- a/Resources/Public/Plugin.js.map +++ b/Resources/Public/Plugin.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../node_modules/.pnpm/@neos-project+neos-ui-extensibility@8.3.5/node_modules/@neos-project/neos-ui-extensibility/src/readFromConsumerApi.ts", "../../node_modules/.pnpm/@neos-project+neos-ui-extensibility@8.3.5/node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react/index.js", "../../node_modules/.pnpm/@neos-project+neos-ui-extensibility@8.3.5/node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-decorators/index.js", "../../node_modules/.pnpm/@neos-project+neos-ui-extensibility@8.3.5/node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/react-ui-components/index.js", "../../node_modules/.pnpm/@neos-project+neos-ui-extensibility@8.3.5/node_modules/@neos-project/neos-ui-extensibility/src/index.ts", "../Private/Editor/ColorValuesEditor/index.js", "../Private/Editor/manifest.js"], - "sourcesContent": [null, null, null, null, null, "import React from \"react\";\nimport { neos } from \"@neos-project/neos-ui-decorators\";\nimport { IconButton } from \"@neos-project/react-ui-components\";\nimport style from \"./style.module.css\";\n\nconst neosifier = neos((globalRegistry) => ({\n i18nRegistry: globalRegistry.get(\"i18n\"),\n config: globalRegistry.get(\"frontendConfiguration\").get(\"Carbon.RangeEditor\"),\n}));\n\nconst defaultProps = {\n options: {\n allowEmpty: true,\n disabled: false,\n placeholder: null,\n resetLabel: \"Reset\",\n },\n};\n\nfunction Editor(props) {\n const onReset = () => {\n props.commit(\"\");\n };\n\n const options = { ...defaultProps.options, ...props.options };\n const { commit, value, highlight, i18nRegistry } = props;\n const { disabled, values } = options;\n\n const previewBoxAttributes = (value, placeholder) => {\n const hasValue = value && Object.prototype.hasOwnProperty.call(values, value);\n const color = hasValue ? values[value].color : placeholder;\n const title = hasValue ? i18nRegistry.translate(values[value].label) : null;\n const classNames = [style.feedback];\n\n if (value == \"transparent\" || (!hasValue && placeholder == \"transparent\")) {\n classNames.push(style.transparent);\n }\n\n if (!hasValue && !placeholder) {\n classNames.push(style.checkboard);\n }\n\n return {\n className: classNames.filter((item) => !!item).join(\" \"),\n style: { backgroundColor: color },\n title,\n };\n };\n\n if (!values) {\n return
No color values defined, please add them to your YAML configuration
;\n }\n\n const allowEmpty = options.allowEmpty || Object.prototype.hasOwnProperty.call(values, \"\");\n const valueArray = [];\n\n for (const key in values) {\n const item = values[key];\n valueArray.push({\n label: i18nRegistry.translate(item.label),\n color: item.color,\n disabled: item.disabled,\n key,\n });\n }\n\n return (\n
\n
\n
\n {allowEmpty && (\n
\n \n
\n )}\n
\n
\n {valueArray.map((item) => {\n return item.color ? (\n commit(item.key)}\n >\n ) : (\n
{item.label}
\n );\n })}\n
\n
\n );\n}\n\nexport default neosifier(Editor);\n", "import manifest from \"@neos-project/neos-ui-extensibility\";\n\nimport ColorValuesEditor from \"./ColorValuesEditor\";\n\nmanifest(\"Carbon.ColorValues:Editor\", {}, (globalRegistry) => {\n const editorsRegistry = globalRegistry.get(\"inspector\").get(\"editors\");\n\n editorsRegistry.set(\"Carbon.ColorValues/Editor\", {\n component: ColorValuesEditor,\n });\n});\n"], - "mappings": "kjBAAc,SAAPA,EAAqCC,EAAW,CACnD,MA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ACF,EAAM,KAAMC,EAAK,OAAS,eAAiBD,EAAM,WAAW,EAAE,KAAK,GAAG,EAClF,SAAUC,EAAK,SACf,MAAO,CAAE,gBAAiBA,EAAK,KAAM,EACrC,MAAOA,EAAK,MACZ,QAAS,IAAMb,EAAOa,EAAK,GAAG,EACjC,EAED,EAAAC,QAAA,cAAC,OAAI,UAAWF,EAAM,OAAQC,EAAK,KAAM,CAEhD,CACL,CACJ,CAER,CAEA,IAAOK,EAAQzB,EAAUG,CAAM,EChG/BuB,EAAS,4BAA6B,CAAC,EAAIC,GAAmB,CAClCA,EAAe,IAAI,WAAW,EAAE,IAAI,SAAS,EAErD,IAAI,4BAA6B,CAC7C,UAAWC,CACf,CAAC,CACL,CAAC", - "names": ["readFromConsumerApi", "key", "args", "init_readFromConsumerApi", "__esmMin", "require_react", "__commonJSMin", "exports", "module", "init_readFromConsumerApi", "readFromConsumerApi", "require_neos_ui_decorators", "__commonJSMin", "exports", "module", "init_readFromConsumerApi", "readFromConsumerApi", "require_react_ui_components", "__commonJSMin", "exports", "module", "init_readFromConsumerApi", "readFromConsumerApi", "init_readFromConsumerApi", "dist_default", "readFromConsumerApi", "import_react", "import_neos_ui_decorators", "import_react_ui_components", "neosifier", "globalRegistry", "defaultProps", "Editor", "props", "onReset", "options", "commit", "value", "highlight", "i18nRegistry", "disabled", "values", "previewBoxAttributes", "placeholder", "hasValue", "color", "title", "classNames", "style_default", "item", "React", "allowEmpty", "valueArray", "key", "ColorValuesEditor_default", "dist_default", "globalRegistry", "ColorValuesEditor_default"] + "sourcesContent": [null, null, null, null, null, "import React from \"react\";\nimport { neos } from \"@neos-project/neos-ui-decorators\";\nimport { IconButton } from \"@neos-project/react-ui-components\";\nimport style from \"./style.module.css\";\n\nconst neosifier = neos((globalRegistry) => ({\n i18nRegistry: globalRegistry.get(\"i18n\"),\n config: globalRegistry.get(\"frontendConfiguration\").get(\"Carbon.RangeEditor\"),\n}));\n\nconst defaultProps = {\n options: {\n allowEmpty: true,\n disabled: false,\n placeholder: null,\n resetLabel: \"Reset\",\n },\n};\n\nfunction Editor(props) {\n const onReset = () => {\n props.commit(\"\");\n };\n\n const options = { ...defaultProps.options, ...props.options };\n const { commit, value, highlight, i18nRegistry } = props;\n const { disabled, values } = options;\n\n const previewBoxAttributes = (value, highlight, placeholder) => {\n const hasValue = value && Object.prototype.hasOwnProperty.call(values, value);\n const color = hasValue ? values[value].color : placeholder;\n const title = hasValue ? i18nRegistry.translate(values[value].label) : null;\n const classNames = [style.feedback];\n\n if (value == \"transparent\" || (!hasValue && placeholder == \"transparent\")) {\n classNames.push(style.transparent);\n }\n\n if (!hasValue && !placeholder) {\n classNames.push(style.checkboard);\n }\n\n if (highlight) {\n classNames.push(style.highlight);\n }\n\n return {\n className: classNames.filter((item) => !!item).join(\" \"),\n style: { backgroundColor: color },\n title,\n };\n };\n\n if (!values) {\n return
No color values defined, please add them to your YAML configuration
;\n }\n\n const allowEmpty = options.allowEmpty || Object.prototype.hasOwnProperty.call(values, \"\");\n const valueArray = [];\n\n for (const key in values) {\n const item = values[key];\n valueArray.push({\n label: i18nRegistry.translate(item.label),\n color: item.color,\n disabled: item.disabled,\n key,\n });\n }\n\n const fixedButton = valueArray.length > 9;\n\n return (\n
\n
\n
\n {allowEmpty && (\n
\n \n
\n )}\n
\n
\n {valueArray.map((item, index) => {\n return item.color ? (\n !!item)\n .join(\" \")}\n disabled={item.disabled}\n style={{ backgroundColor: item.color }}\n title={item.label}\n onClick={() => commit(item.key)}\n >\n ) : (\n
\n {item.label}\n
\n );\n })}\n
\n
\n );\n}\n\nexport default neosifier(Editor);\n", "import manifest from \"@neos-project/neos-ui-extensibility\";\n\nimport ColorValuesEditor from \"./ColorValuesEditor\";\n\nmanifest(\"Carbon.ColorValues:Editor\", {}, (globalRegistry) => {\n const editorsRegistry = globalRegistry.get(\"inspector\").get(\"editors\");\n\n editorsRegistry.set(\"Carbon.ColorValues/Editor\", {\n component: ColorValuesEditor,\n });\n});\n"], + "mappings": "kjB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J,CAER,EACA,EAAAgB,QAAA,cAAC,OAAI,UAAWF,EAAM,MACjBI,EAAW,IAAI,CAACH,EAAMM,IACZN,EAAK,MACR,EAAAC,QAAA,cAAC,UACG,IAAKK,EACL,UAAW,CACPP,EAAM,KACNC,EAAK,OAAS,eAAiBD,EAAM,YACrCM,GAAeN,EAAM,SACzB,EACK,OAAQC,GAAS,CAAC,CAACA,CAAI,EACvB,KAAK,GAAG,EACb,SAAUA,EAAK,SACf,MAAO,CAAE,gBAAiBA,EAAK,KAAM,EACrC,MAAOA,EAAK,MACZ,QAAS,IAAMb,EAAOa,EAAK,GAAG,EACjC,EAED,EAAAC,QAAA,cAAC,OAAI,IAAKK,EAAO,UAAWP,EAAM,OAC7BC,EAAK,KACV,CAEP,CACL,CACJ,CAER,CAEA,IAAOO,EAAQ3B,EAAUG,CAAM,EC/G/ByB,EAAS,4BAA6B,CAAC,EAAIC,GAAmB,CAClCA,EAAe,IAAI,WAAW,EAAE,IAAI,SAAS,EAErD,IAAI,4BAA6B,CAC7C,UAAWC,CACf,CAAC,CACL,CAAC", + "names": ["readFromConsumerApi", "key", "args", "init_readFromConsumerApi", "__esmMin", "require_react", "__commonJSMin", "exports", "module", "init_readFromConsumerApi", "readFromConsumerApi", "require_neos_ui_decorators", "__commonJSMin", "exports", "module", "init_readFromConsumerApi", "readFromConsumerApi", "require_react_ui_components", "__commonJSMin", "exports", "module", "init_readFromConsumerApi", "readFromConsumerApi", "init_readFromConsumerApi", "dist_default", "readFromConsumerApi", "import_react", "import_neos_ui_decorators", "import_react_ui_components", "neosifier", "globalRegistry", "defaultProps", "Editor", "props", "onReset", "options", "commit", "value", "highlight", "i18nRegistry", "disabled", "values", "previewBoxAttributes", "placeholder", "hasValue", "color", "title", "classNames", "style_default", "item", "React", "allowEmpty", "valueArray", "key", "fixedButton", "index", "ColorValuesEditor_default", "dist_default", "globalRegistry", "ColorValuesEditor_default"] } diff --git a/package.json b/package.json index d74ff48..3c6b972 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,16 @@ { - "description": "Carbon.DirectionEditor", - "license": "proprietary", - "private": true, - "scripts": { - "build": "node build.mjs --production", - "watch": "node build.mjs --watch", - "dev": "node build.mjs" - }, - "devDependencies": { - "@neos-project/neos-ui-extensibility": "~8.3.4", - "esbuild": "^0.19.4", - "esbuild-plugin-lightningcss-modules": "^0.1.0", - "prettier": "^3.0.3" - } + "description": "Carbon.DirectionEditor", + "license": "proprietary", + "private": true, + "scripts": { + "build": "node build.mjs --production", + "watch": "node build.mjs --watch", + "dev": "node build.mjs" + }, + "devDependencies": { + "@neos-project/neos-ui-extensibility": "~8.3.4", + "esbuild": "^0.20.2", + "esbuild-plugin-lightningcss-modules": "^0.1.0", + "prettier": "^3.2.5" } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e756458..e7a7f05 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,19 +9,19 @@ devDependencies: specifier: ~8.3.4 version: 8.3.5 esbuild: - specifier: ^0.19.4 - version: 0.19.12 + specifier: ^0.20.2 + version: 0.20.2 esbuild-plugin-lightningcss-modules: specifier: ^0.1.0 - version: 0.1.2(esbuild@0.19.12) + version: 0.1.2(esbuild@0.20.2) prettier: - specifier: ^3.0.3 - version: 3.2.4 + specifier: ^3.2.5 + version: 3.2.5 packages: - /@esbuild/aix-ppc64@0.19.12: - resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} + /@esbuild/aix-ppc64@0.20.2: + resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==} engines: {node: '>=12'} cpu: [ppc64] os: [aix] @@ -29,8 +29,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.19.12: - resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==} + /@esbuild/android-arm64@0.20.2: + resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -38,8 +38,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.19.12: - resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==} + /@esbuild/android-arm@0.20.2: + resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -47,8 +47,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.19.12: - resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==} + /@esbuild/android-x64@0.20.2: + resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -56,8 +56,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.19.12: - resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==} + /@esbuild/darwin-arm64@0.20.2: + resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -65,8 +65,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.19.12: - resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==} + /@esbuild/darwin-x64@0.20.2: + resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -74,8 +74,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.19.12: - resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==} + /@esbuild/freebsd-arm64@0.20.2: + resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -83,8 +83,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.19.12: - resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==} + /@esbuild/freebsd-x64@0.20.2: + resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -92,8 +92,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.19.12: - resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==} + /@esbuild/linux-arm64@0.20.2: + resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -101,8 +101,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.19.12: - resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==} + /@esbuild/linux-arm@0.20.2: + resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -110,8 +110,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.19.12: - resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==} + /@esbuild/linux-ia32@0.20.2: + resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -119,8 +119,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.19.12: - resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==} + /@esbuild/linux-loong64@0.20.2: + resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -128,8 +128,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.19.12: - resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==} + /@esbuild/linux-mips64el@0.20.2: + resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -137,8 +137,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.19.12: - resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==} + /@esbuild/linux-ppc64@0.20.2: + resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -146,8 +146,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.19.12: - resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==} + /@esbuild/linux-riscv64@0.20.2: + resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -155,8 +155,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.19.12: - resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==} + /@esbuild/linux-s390x@0.20.2: + resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -164,8 +164,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.19.12: - resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==} + /@esbuild/linux-x64@0.20.2: + resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -173,8 +173,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.19.12: - resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==} + /@esbuild/netbsd-x64@0.20.2: + resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -182,8 +182,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.19.12: - resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==} + /@esbuild/openbsd-x64@0.20.2: + resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -191,8 +191,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.19.12: - resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==} + /@esbuild/sunos-x64@0.20.2: + resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -200,8 +200,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.19.12: - resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==} + /@esbuild/win32-arm64@0.20.2: + resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -209,8 +209,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.19.12: - resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==} + /@esbuild/win32-ia32@0.20.2: + resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -218,8 +218,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.19.12: - resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==} + /@esbuild/win32-x64@0.20.2: + resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -243,44 +243,44 @@ packages: hasBin: true dev: true - /esbuild-plugin-lightningcss-modules@0.1.2(esbuild@0.19.12): + /esbuild-plugin-lightningcss-modules@0.1.2(esbuild@0.20.2): resolution: {integrity: sha512-Wdm7zEh7t1mglEkuvqL8bhFAZmKwjdytx9/7s4LiKni/uTUYSQSwt4WU7nXcNm6/37qnNoPzklltP51hPWYPvw==} peerDependencies: esbuild: ~0.16.0 || ~0.17.0 dependencies: - esbuild: 0.19.12 + esbuild: 0.20.2 lightningcss: 1.23.0 dev: true - /esbuild@0.19.12: - resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} + /esbuild@0.20.2: + resolution: {integrity: sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/aix-ppc64': 0.19.12 - '@esbuild/android-arm': 0.19.12 - '@esbuild/android-arm64': 0.19.12 - '@esbuild/android-x64': 0.19.12 - '@esbuild/darwin-arm64': 0.19.12 - '@esbuild/darwin-x64': 0.19.12 - '@esbuild/freebsd-arm64': 0.19.12 - '@esbuild/freebsd-x64': 0.19.12 - '@esbuild/linux-arm': 0.19.12 - '@esbuild/linux-arm64': 0.19.12 - '@esbuild/linux-ia32': 0.19.12 - '@esbuild/linux-loong64': 0.19.12 - '@esbuild/linux-mips64el': 0.19.12 - '@esbuild/linux-ppc64': 0.19.12 - '@esbuild/linux-riscv64': 0.19.12 - '@esbuild/linux-s390x': 0.19.12 - '@esbuild/linux-x64': 0.19.12 - '@esbuild/netbsd-x64': 0.19.12 - '@esbuild/openbsd-x64': 0.19.12 - '@esbuild/sunos-x64': 0.19.12 - '@esbuild/win32-arm64': 0.19.12 - '@esbuild/win32-ia32': 0.19.12 - '@esbuild/win32-x64': 0.19.12 + '@esbuild/aix-ppc64': 0.20.2 + '@esbuild/android-arm': 0.20.2 + '@esbuild/android-arm64': 0.20.2 + '@esbuild/android-x64': 0.20.2 + '@esbuild/darwin-arm64': 0.20.2 + '@esbuild/darwin-x64': 0.20.2 + '@esbuild/freebsd-arm64': 0.20.2 + '@esbuild/freebsd-x64': 0.20.2 + '@esbuild/linux-arm': 0.20.2 + '@esbuild/linux-arm64': 0.20.2 + '@esbuild/linux-ia32': 0.20.2 + '@esbuild/linux-loong64': 0.20.2 + '@esbuild/linux-mips64el': 0.20.2 + '@esbuild/linux-ppc64': 0.20.2 + '@esbuild/linux-riscv64': 0.20.2 + '@esbuild/linux-s390x': 0.20.2 + '@esbuild/linux-x64': 0.20.2 + '@esbuild/netbsd-x64': 0.20.2 + '@esbuild/openbsd-x64': 0.20.2 + '@esbuild/sunos-x64': 0.20.2 + '@esbuild/win32-arm64': 0.20.2 + '@esbuild/win32-ia32': 0.20.2 + '@esbuild/win32-x64': 0.20.2 dev: true /lightningcss-darwin-arm64@1.23.0: @@ -381,8 +381,8 @@ packages: lightningcss-win32-x64-msvc: 1.23.0 dev: true - /prettier@3.2.4: - resolution: {integrity: sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==} + /prettier@3.2.5: + resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} engines: {node: '>=14'} hasBin: true dev: true