@ms-cloudpack/overlay 0.19.79 → 0.19.80

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/NOTICE.txt CHANGED
@@ -63,7 +63,7 @@ SOFTWARE.
63
63
 
64
64
  ----
65
65
 
66
- @trpc/client 11.9.0 - MIT
66
+ @trpc/client 11.10.0 - MIT
67
67
  git+https://github.com/trpc/trpc.git
68
68
 
69
69
  Author: KATT
@@ -92,7 +92,7 @@ SOFTWARE.
92
92
 
93
93
  ----
94
94
 
95
- @trpc/server 11.9.0 - MIT
95
+ @trpc/server 11.10.0 - MIT
96
96
  git+https://github.com/trpc/trpc.git
97
97
 
98
98
  Author: KATT
@@ -269,7 +269,7 @@ jsx-runtime 1.0.0 - MIT
269
269
 
270
270
  ----
271
271
 
272
- preact 10.28.2 - MIT
272
+ preact 10.28.3 - MIT
273
273
  preactjs/preact
274
274
 
275
275
  The MIT License (MIT)
@@ -1,2 +1,2 @@
1
- export const __webpack_esm_id__=222;export const __webpack_esm_ids__=[222];export const __webpack_esm_modules__={222(n,e,t){t.d(e,{StatusDialog:()=>K,default:()=>V}),t.r(e);var r=t(621),a=t(104),s=t.n(a),o=t(478),i=t(938),l=t(606),c=t.n(l),d=t(607),A=t.n(d),u=t(437),p=t.n(u),h=t(750),g=t.n(h),x=t(994),C=t.n(x),m=t(415),f=t.n(m),b=t(585),B={};B.styleTagTransform=f(),B.setAttributes=g(),B.insert=p().bind(null,"head"),B.domAPI=A(),B.insertStyleElement=C(),c()(b.default,B);const k=b.default&&b.default.locals?b.default.locals:void 0;var w=t(245);const E=["ori","rollup","webpack","rspack","esbuild"],v=n=>{const{item:e,inputPath:t,index:a,type:o}=n,{location:i,notes:l=[]}=e,c=E.includes(e.source)?`${e.source} bundler`:`cloudpack ${e.source}`;return(0,r.jsxs)("div",{class:k.root,children:[(0,r.jsx)("div",{class:s()(k.statusBar,"warning"===o&&k.warning)}),(0,r.jsxs)("div",{class:k.content,children:[(0,r.jsxs)("div",{class:k.titleArea,children:[a+1,". ",(0,r.jsx)(j,{loc:i,inputPath:t})," (via: ",c,")"]}),(0,r.jsx)("pre",{class:k.text,children:_(e.text)}),l.length>0&&(0,r.jsxs)("details",{children:[(0,r.jsx)("summary",{children:"Expand for more details"}),(0,r.jsx)("ul",{children:l.map((n,e)=>(0,r.jsxs)("li",{children:[n.location&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{loc:n.location,inputPath:t}),(0,r.jsx)("br",{})]}),n.text&&(0,r.jsx)("pre",{class:k.text,children:_(n.text)})]},e))})]})]})]})};function _(n){return n.replace(/\x1b\[[\d;]+(m|[AKB]\b)/g,"")}const j=n=>{const{loc:e,inputPath:t}=n,a=(0,i.useCloudpack)();if(!e)return"(path unavailable)";const s=[e.file,e.line,e.column].filter(n=>void 0!==n).join(":");return!t||/[?!]/.test(s)?s:(0,r.jsx)(w.Button,{variant:"link",onClick:()=>{t&&a.openCodeEditor.mutate({rootPath:t,relativePath:e.file,line:e.line,column:e.column})},children:s})};var R=t(123),D=t(309);function y(n){return"pending"===n.status?"Running":[`Completed in ${n.duration}ms`,n.errors?.length&&`${n.errors.length} error${n.errors.length>1?"s":""}`,n.warnings?.length&&`${n.warnings.length} warning${n.warnings.length>1?"s":""}`].filter(Boolean).join(", ")}const S=n=>{const{task:e}=n,{name:t,warnings:a=[],errors:s=[],inputPath:o,outputPath:l}=e,c=(0,i.useCloudpack)(),d=n=>{c.openFilePath.mutate({rootPath:n})},A=()=>{o&&c.openCodeEditor.mutate({rootPath:o,relativePath:"package.json"})};return(0,r.jsx)(R.ResultsAccordion,{name:t||"<unknown>",index:n.index,result:s.length?"error":a.length?"warning":"success",headerEndContent:y(e),headerCommands:(0,r.jsx)(w.Button,{variant:"iconOnly",onClick:()=>{o&&c.restartTask.mutate({id:e.id,inputPath:o})},title:"Re-bundle this package","aria-label":"Re-bundle this package",children:(0,r.jsx)(D.Refresh20,{})}),getContent:()=>(0,r.jsxs)(r.Fragment,{children:[o?(0,r.jsx)(R.ResultsAccordionContent,{itemName:"Input path",itemValue:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Button,{variant:"link",onClick:()=>d(o),children:o})," ","(",(0,r.jsx)(w.Button,{variant:"link",onClick:A,children:"package.json"}),")"]})}):"No input path found for bundle task. This is a Cloudpack bug. Please report it.",l&&(0,r.jsx)(R.ResultsAccordionContent,{itemName:"Output path",itemValue:(0,r.jsx)(w.Button,{variant:"link",onClick:()=>d(l),children:l})}),s.length>0&&(0,r.jsx)(R.ResultsAccordionContent,{title:"Errors",children:s.map((n,e)=>(0,r.jsx)(v,{type:"error",item:n,inputPath:o,index:e},e))}),a.length>0&&(0,r.jsx)(R.ResultsAccordionContent,{title:"Warnings",children:a.map((n,e)=>(0,r.jsx)(v,{type:"warning",item:n,inputPath:o,index:e},e))})]})})};var F=t(204);const T=({searchFilter:n,issuesOnly:e})=>{let t=[...(()=>{const n=(0,i.useCloudpack)(),[e,t]=(0,o.useState)({tasks:[]});return(0,o.useEffect)(()=>{const e=n?.onDataChanged.subscribe(F.taskListSource,{onData:n=>{t(n)}});return()=>{e.unsubscribe()}},[n]),e})().tasks].sort(P);return n&&(n=n.toLowerCase(),t=t.filter(({name:e})=>e?.toLowerCase().includes(n))),e&&(t=t.filter(({errors:n,warnings:e})=>n?.length||e?.length)),(0,r.jsx)(r.Fragment,{children:t.map((n,e)=>(0,r.jsx)(S,{index:e,task:n},n.name))})};function P(n,e){const t="pending"===n.status?1:0,r="pending"===e.status?1:0;if(t!==r)return t>r?-1:1;const a=n.errors?.length||0,s=e.errors?.length||0;return a!==s?a>s?-1:1:void 0===n.name&&void 0===e.name?n.id<e.id?-1:1:void 0===n.name?1:void 0===e.name||n.name<e.name?-1:1}var I=t(212),O=t(405),q=t(636),z={};z.styleTagTransform=f(),z.setAttributes=g(),z.insert=p().bind(null,"head"),z.domAPI=A(),z.insertStyleElement=C(),c()(q.default,z);const L=q.default&&q.default.locals?q.default.locals:void 0;var N=t(542);const K=({onClose:n})=>{const e=(0,i.useCloudpack)(),[t,a]=(0,o.useState)(""),[l,c]=(0,o.useState)(!1),[d,A]=(0,o.useState)(!1),u=(0,o.useCallback)(n=>{n.preventDefault(),a(n.target.value)},[]);return(0,r.jsx)(I.Dialog,{title:"Cloudpack bundle results",id:O.elementIds.statusDialogRoot,draggable:!0,onClose:d?void 0:n,commands:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(w.Button,{variant:"primary",onClick:()=>{A(!0),e.restartAllTasks.mutate()},disabled:d,children:[(0,r.jsx)(D.Refresh20,{class:s()(d&&L.spin)})," Re-bundle all packages"]}),(0,r.jsx)(w.Button,{onClick:()=>{c(n=>!n)},disabled:d,children:l?"Show all packages":"Show packages with issues"}),(0,r.jsx)("input",{type:"text","aria-label":"Search",placeholder:"Search",value:t,onInput:u,class:s()(L.searchbox,N.default.root,N.default.standard),disabled:d})]}),children:d?"Preparing to re-bundle (the page will refresh when ready)...":(0,r.jsx)(T,{searchFilter:t,issuesOnly:l})})},V=K},585(n,e,t){t.d(e,{default:()=>i});var r=t(421),a=t.n(r),s=t(115),o=t.n(s)()(a());o.push([n.id,".root__Rl6XMfFcB4M4Sp5RJbh8 {\n display: flex;\n background: var(--cp-neutralLighter);\n}\n\n/* left border color indicator */\n.statusBar__RsdQpgzZbI9fI4mSfjJX {\n flex-shrink: 0;\n border-radius: 4px;\n width: 4px;\n background: var(--cp-errorDark);\n box-shadow: 2px 0 4px 0 var(--cp-errorTransparent);\n}\n.statusBar__RsdQpgzZbI9fI4mSfjJX.warning__EcBSTvORlKqFlDbz3mr9 {\n background: var(--cp-warningDark);\n box-shadow: 2px 0 4px 0 var(--cp-warningTransparent);\n}\n\n/* everything but the status bar */\n.content__oaWQstIJN1TotKTOLcwX {\n padding: 8px;\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n flex-direction: column;\n}\n\n/* file path and error source */\n.titleArea__NUKs26I_j0KAivvaQbz4 {\n padding: 4px 0;\n font-weight: 500;\n}\n\n/* pre with error details */\n.text__qXRXiNO7j_FMkOf4b1Hi {\n word-wrap: break-word;\n white-space: pre-wrap;\n color: var(--cp-text);\n /* monospace fonts tend to have tight line-height and be too large */\n line-height: 1.5em;\n font-size: 0.9em;\n}\n","",{version:3,sources:["webpack://./src/components/StatusDialog/TaskResultItem.module.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,oCAAoC;AACtC;;AAEA,gCAAgC;AAChC;EACE,cAAc;EACd,kBAAkB;EAClB,UAAU;EACV,+BAA+B;EAC/B,kDAAkD;AACpD;AACA;EACE,iCAAiC;EACjC,oDAAoD;AACtD;;AAEA,kCAAkC;AAClC;EACE,YAAY;EACZ,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,sBAAsB;AACxB;;AAEA,+BAA+B;AAC/B;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA,2BAA2B;AAC3B;EACE,qBAAqB;EACrB,qBAAqB;EACrB,qBAAqB;EACrB,oEAAoE;EACpE,kBAAkB;EAClB,gBAAgB;AAClB",sourcesContent:[".root {\n display: flex;\n background: var(--cp-neutralLighter);\n}\n\n/* left border color indicator */\n.statusBar {\n flex-shrink: 0;\n border-radius: 4px;\n width: 4px;\n background: var(--cp-errorDark);\n box-shadow: 2px 0 4px 0 var(--cp-errorTransparent);\n}\n.statusBar.warning {\n background: var(--cp-warningDark);\n box-shadow: 2px 0 4px 0 var(--cp-warningTransparent);\n}\n\n/* everything but the status bar */\n.content {\n padding: 8px;\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n flex-direction: column;\n}\n\n/* file path and error source */\n.titleArea {\n padding: 4px 0;\n font-weight: 500;\n}\n\n/* pre with error details */\n.text {\n word-wrap: break-word;\n white-space: pre-wrap;\n color: var(--cp-text);\n /* monospace fonts tend to have tight line-height and be too large */\n line-height: 1.5em;\n font-size: 0.9em;\n}\n"],sourceRoot:""}]),o.locals={root:"root__Rl6XMfFcB4M4Sp5RJbh8",statusBar:"statusBar__RsdQpgzZbI9fI4mSfjJX",warning:"warning__EcBSTvORlKqFlDbz3mr9",content:"content__oaWQstIJN1TotKTOLcwX",titleArea:"titleArea__NUKs26I_j0KAivvaQbz4",text:"text__qXRXiNO7j_FMkOf4b1Hi"};const i=o},636(n,e,t){t.d(e,{default:()=>i});var r=t(421),a=t.n(r),s=t(115),o=t.n(s)()(a());o.push([n.id,"@keyframes cp-spin__gcFQred791GFVqluefOr {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.spin__cSlR0KG2ydLnzVkkbwdj {\n animation: cp-spin__gcFQred791GFVqluefOr 1s linear infinite;\n}\n\n.searchbox__LfVxJ7Te2Dle6scWlkNw {\n background-color: var(--cp-white);\n font-weight: 400;\n box-shadow: none;\n padding: 0px 8px;\n min-width: 160px;\n /* align to far right */\n margin-left: auto;\n}\n.searchbox__LfVxJ7Te2Dle6scWlkNw:disabled::placeholder {\n color: var(--cp-textDisabled);\n}\n","",{version:3,sources:["webpack://./src/components/StatusDialog/StatusDialog.module.css"],names:[],mappings:"AAAA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;;AAEA;EACE,2DAAqC;AACvC;;AAEA;EACE,iCAAiC;EACjC,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,uBAAuB;EACvB,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B",sourcesContent:["@keyframes cp-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.spin {\n animation: cp-spin 1s linear infinite;\n}\n\n.searchbox {\n background-color: var(--cp-white);\n font-weight: 400;\n box-shadow: none;\n padding: 0px 8px;\n min-width: 160px;\n /* align to far right */\n margin-left: auto;\n}\n.searchbox:disabled::placeholder {\n color: var(--cp-textDisabled);\n}\n"],sourceRoot:""}]),o.locals={spin:"spin__cSlR0KG2ydLnzVkkbwdj","cp-spin":"cp-spin__gcFQred791GFVqluefOr",searchbox:"searchbox__LfVxJ7Te2Dle6scWlkNw"};const i=o}};
1
+ export const __webpack_esm_id__=222;export const __webpack_esm_ids__=[222];export const __webpack_esm_modules__={636(n,e,t){t.d(e,{default:()=>i});var r=t(421),a=t.n(r),s=t(115),o=t.n(s)()(a());o.push([n.id,"@keyframes cp-spin__gcFQred791GFVqluefOr {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.spin__cSlR0KG2ydLnzVkkbwdj {\n animation: cp-spin__gcFQred791GFVqluefOr 1s linear infinite;\n}\n\n.searchbox__LfVxJ7Te2Dle6scWlkNw {\n background-color: var(--cp-white);\n font-weight: 400;\n box-shadow: none;\n padding: 0px 8px;\n min-width: 160px;\n /* align to far right */\n margin-left: auto;\n}\n.searchbox__LfVxJ7Te2Dle6scWlkNw:disabled::placeholder {\n color: var(--cp-textDisabled);\n}\n","",{version:3,sources:["webpack://./src/components/StatusDialog/StatusDialog.module.css"],names:[],mappings:"AAAA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;;AAEA;EACE,2DAAqC;AACvC;;AAEA;EACE,iCAAiC;EACjC,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,uBAAuB;EACvB,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B",sourcesContent:["@keyframes cp-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.spin {\n animation: cp-spin 1s linear infinite;\n}\n\n.searchbox {\n background-color: var(--cp-white);\n font-weight: 400;\n box-shadow: none;\n padding: 0px 8px;\n min-width: 160px;\n /* align to far right */\n margin-left: auto;\n}\n.searchbox:disabled::placeholder {\n color: var(--cp-textDisabled);\n}\n"],sourceRoot:""}]),o.locals={spin:"spin__cSlR0KG2ydLnzVkkbwdj","cp-spin":"cp-spin__gcFQred791GFVqluefOr",searchbox:"searchbox__LfVxJ7Te2Dle6scWlkNw"};const i=o},585(n,e,t){t.d(e,{default:()=>i});var r=t(421),a=t.n(r),s=t(115),o=t.n(s)()(a());o.push([n.id,".root__Rl6XMfFcB4M4Sp5RJbh8 {\n display: flex;\n background: var(--cp-neutralLighter);\n}\n\n/* left border color indicator */\n.statusBar__RsdQpgzZbI9fI4mSfjJX {\n flex-shrink: 0;\n border-radius: 4px;\n width: 4px;\n background: var(--cp-errorDark);\n box-shadow: 2px 0 4px 0 var(--cp-errorTransparent);\n}\n.statusBar__RsdQpgzZbI9fI4mSfjJX.warning__EcBSTvORlKqFlDbz3mr9 {\n background: var(--cp-warningDark);\n box-shadow: 2px 0 4px 0 var(--cp-warningTransparent);\n}\n\n/* everything but the status bar */\n.content__oaWQstIJN1TotKTOLcwX {\n padding: 8px;\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n flex-direction: column;\n}\n\n/* file path and error source */\n.titleArea__NUKs26I_j0KAivvaQbz4 {\n padding: 4px 0;\n font-weight: 500;\n}\n\n/* pre with error details */\n.text__qXRXiNO7j_FMkOf4b1Hi {\n word-wrap: break-word;\n white-space: pre-wrap;\n color: var(--cp-text);\n /* monospace fonts tend to have tight line-height and be too large */\n line-height: 1.5em;\n font-size: 0.9em;\n}\n","",{version:3,sources:["webpack://./src/components/StatusDialog/TaskResultItem.module.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,oCAAoC;AACtC;;AAEA,gCAAgC;AAChC;EACE,cAAc;EACd,kBAAkB;EAClB,UAAU;EACV,+BAA+B;EAC/B,kDAAkD;AACpD;AACA;EACE,iCAAiC;EACjC,oDAAoD;AACtD;;AAEA,kCAAkC;AAClC;EACE,YAAY;EACZ,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,sBAAsB;AACxB;;AAEA,+BAA+B;AAC/B;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA,2BAA2B;AAC3B;EACE,qBAAqB;EACrB,qBAAqB;EACrB,qBAAqB;EACrB,oEAAoE;EACpE,kBAAkB;EAClB,gBAAgB;AAClB",sourcesContent:[".root {\n display: flex;\n background: var(--cp-neutralLighter);\n}\n\n/* left border color indicator */\n.statusBar {\n flex-shrink: 0;\n border-radius: 4px;\n width: 4px;\n background: var(--cp-errorDark);\n box-shadow: 2px 0 4px 0 var(--cp-errorTransparent);\n}\n.statusBar.warning {\n background: var(--cp-warningDark);\n box-shadow: 2px 0 4px 0 var(--cp-warningTransparent);\n}\n\n/* everything but the status bar */\n.content {\n padding: 8px;\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n flex-direction: column;\n}\n\n/* file path and error source */\n.titleArea {\n padding: 4px 0;\n font-weight: 500;\n}\n\n/* pre with error details */\n.text {\n word-wrap: break-word;\n white-space: pre-wrap;\n color: var(--cp-text);\n /* monospace fonts tend to have tight line-height and be too large */\n line-height: 1.5em;\n font-size: 0.9em;\n}\n"],sourceRoot:""}]),o.locals={root:"root__Rl6XMfFcB4M4Sp5RJbh8",statusBar:"statusBar__RsdQpgzZbI9fI4mSfjJX",warning:"warning__EcBSTvORlKqFlDbz3mr9",content:"content__oaWQstIJN1TotKTOLcwX",titleArea:"titleArea__NUKs26I_j0KAivvaQbz4",text:"text__qXRXiNO7j_FMkOf4b1Hi"};const i=o},222(n,e,t){t.d(e,{StatusDialog:()=>K,default:()=>V}),t.r(e);var r=t(789),a=t(104),s=t.n(a),o=t(302),i=t(938),l=t(606),c=t.n(l),d=t(607),A=t.n(d),u=t(437),p=t.n(u),h=t(750),g=t.n(h),x=t(994),C=t.n(x),m=t(415),f=t.n(m),b=t(585),B={};B.styleTagTransform=f(),B.setAttributes=g(),B.insert=p().bind(null,"head"),B.domAPI=A(),B.insertStyleElement=C(),c()(b.default,B);const k=b.default&&b.default.locals?b.default.locals:void 0;var w=t(245);const E=["ori","rollup","webpack","rspack","esbuild"],v=n=>{const{item:e,inputPath:t,index:a,type:o}=n,{location:i,notes:l=[]}=e,c=E.includes(e.source)?`${e.source} bundler`:`cloudpack ${e.source}`;return(0,r.jsxs)("div",{class:k.root,children:[(0,r.jsx)("div",{class:s()(k.statusBar,"warning"===o&&k.warning)}),(0,r.jsxs)("div",{class:k.content,children:[(0,r.jsxs)("div",{class:k.titleArea,children:[a+1,". ",(0,r.jsx)(j,{loc:i,inputPath:t})," (via: ",c,")"]}),(0,r.jsx)("pre",{class:k.text,children:_(e.text)}),l.length>0&&(0,r.jsxs)("details",{children:[(0,r.jsx)("summary",{children:"Expand for more details"}),(0,r.jsx)("ul",{children:l.map((n,e)=>(0,r.jsxs)("li",{children:[n.location&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{loc:n.location,inputPath:t}),(0,r.jsx)("br",{})]}),n.text&&(0,r.jsx)("pre",{class:k.text,children:_(n.text)})]},e))})]})]})]})};function _(n){return n.replace(/\x1b\[[\d;]+(m|[AKB]\b)/g,"")}const j=n=>{const{loc:e,inputPath:t}=n,a=(0,i.useCloudpack)();if(!e)return"(path unavailable)";const s=[e.file,e.line,e.column].filter(n=>void 0!==n).join(":");return!t||/[?!]/.test(s)?s:(0,r.jsx)(w.Button,{variant:"link",onClick:()=>{t&&a.openCodeEditor.mutate({rootPath:t,relativePath:e.file,line:e.line,column:e.column})},children:s})};var R=t(123),D=t(309);function y(n){return"pending"===n.status?"Running":[`Completed in ${n.duration}ms`,n.errors?.length&&`${n.errors.length} error${n.errors.length>1?"s":""}`,n.warnings?.length&&`${n.warnings.length} warning${n.warnings.length>1?"s":""}`].filter(Boolean).join(", ")}const S=n=>{const{task:e}=n,{name:t,warnings:a=[],errors:s=[],inputPath:o,outputPath:l}=e,c=(0,i.useCloudpack)(),d=n=>{c.openFilePath.mutate({rootPath:n})},A=()=>{o&&c.openCodeEditor.mutate({rootPath:o,relativePath:"package.json"})};return(0,r.jsx)(R.ResultsAccordion,{name:t||"<unknown>",index:n.index,result:s.length?"error":a.length?"warning":"success",headerEndContent:y(e),headerCommands:(0,r.jsx)(w.Button,{variant:"iconOnly",onClick:()=>{o&&c.restartTask.mutate({id:e.id,inputPath:o})},title:"Re-bundle this package","aria-label":"Re-bundle this package",children:(0,r.jsx)(D.Refresh20,{})}),getContent:()=>(0,r.jsxs)(r.Fragment,{children:[o?(0,r.jsx)(R.ResultsAccordionContent,{itemName:"Input path",itemValue:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Button,{variant:"link",onClick:()=>d(o),children:o})," ","(",(0,r.jsx)(w.Button,{variant:"link",onClick:A,children:"package.json"}),")"]})}):"No input path found for bundle task. This is a Cloudpack bug. Please report it.",l&&(0,r.jsx)(R.ResultsAccordionContent,{itemName:"Output path",itemValue:(0,r.jsx)(w.Button,{variant:"link",onClick:()=>d(l),children:l})}),s.length>0&&(0,r.jsx)(R.ResultsAccordionContent,{title:"Errors",children:s.map((n,e)=>(0,r.jsx)(v,{type:"error",item:n,inputPath:o,index:e},e))}),a.length>0&&(0,r.jsx)(R.ResultsAccordionContent,{title:"Warnings",children:a.map((n,e)=>(0,r.jsx)(v,{type:"warning",item:n,inputPath:o,index:e},e))})]})})};var F=t(204);const T=({searchFilter:n,issuesOnly:e})=>{let t=[...(()=>{const n=(0,i.useCloudpack)(),[e,t]=(0,o.useState)({tasks:[]});return(0,o.useEffect)(()=>{const e=n?.onDataChanged.subscribe(F.taskListSource,{onData:n=>{t(n)}});return()=>{e.unsubscribe()}},[n]),e})().tasks].sort(P);return n&&(n=n.toLowerCase(),t=t.filter(({name:e})=>e?.toLowerCase().includes(n))),e&&(t=t.filter(({errors:n,warnings:e})=>n?.length||e?.length)),(0,r.jsx)(r.Fragment,{children:t.map((n,e)=>(0,r.jsx)(S,{index:e,task:n},n.name))})};function P(n,e){const t="pending"===n.status?1:0,r="pending"===e.status?1:0;if(t!==r)return t>r?-1:1;const a=n.errors?.length||0,s=e.errors?.length||0;return a!==s?a>s?-1:1:void 0===n.name&&void 0===e.name?n.id<e.id?-1:1:void 0===n.name?1:void 0===e.name||n.name<e.name?-1:1}var I=t(212),O=t(405),q=t(636),z={};z.styleTagTransform=f(),z.setAttributes=g(),z.insert=p().bind(null,"head"),z.domAPI=A(),z.insertStyleElement=C(),c()(q.default,z);const L=q.default&&q.default.locals?q.default.locals:void 0;var N=t(542);const K=({onClose:n})=>{const e=(0,i.useCloudpack)(),[t,a]=(0,o.useState)(""),[l,c]=(0,o.useState)(!1),[d,A]=(0,o.useState)(!1),u=(0,o.useCallback)(n=>{n.preventDefault(),a(n.target.value)},[]);return(0,r.jsx)(I.Dialog,{title:"Cloudpack bundle results",id:O.elementIds.statusDialogRoot,draggable:!0,onClose:d?void 0:n,commands:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(w.Button,{variant:"primary",onClick:()=>{A(!0),e.restartAllTasks.mutate()},disabled:d,children:[(0,r.jsx)(D.Refresh20,{class:s()(d&&L.spin)})," Re-bundle all packages"]}),(0,r.jsx)(w.Button,{onClick:()=>{c(n=>!n)},disabled:d,children:l?"Show all packages":"Show packages with issues"}),(0,r.jsx)("input",{type:"text","aria-label":"Search",placeholder:"Search",value:t,onInput:u,class:s()(L.searchbox,N.default.root,N.default.standard),disabled:d})]}),children:d?"Preparing to re-bundle (the page will refresh when ready)...":(0,r.jsx)(T,{searchFilter:t,issuesOnly:l})})},V=K}};
2
2
  //# sourceMappingURL=222.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"222.chunk.js","mappings":"mVAWIA,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IACxBF,EAAQG,OAAS,SAAc,KAAM,QACrCH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,UAASL,GAKnB,QAAe,WAAW,UAAQM,OAAS,UAAQA,YAASC,E,aCLnE,MAAMC,EAAe,CAAC,MAAO,SAAU,UAAW,SAAU,WAK/CC,EAA0DC,IACrE,MAAM,KAAEC,EAAI,UAAEC,EAAS,MAAEC,EAAK,KAAEC,GAASJ,GACjCK,SAAUC,EAAG,MAAEC,EAAQ,IAAON,EAKhCO,EAAiBV,EAAaW,SAAS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C,QAAQ,UAAUC,QArBV,KACtB8D,GAAgB,GACX1E,EAAUsF,gBAAgBxE,UAmB2ByE,SAAUd,E,WAE5D,SAACnC,EAAAA,UAASA,CAAC5D,MAAOG,IAAG4F,GAAgB9F,EAAO6G,QAAS,8BAEvD,SAAC9E,EAAAA,OAAMA,CAACE,QApBS,KAAW4D,EAAeQ,IAAWA,IAoBnBO,SAAUd,E,SAC1C5B,EAAa,oBAAsB,+BAEtC,SAAC4C,QAAAA,CACCvH,KAAK,OACLmE,aAAW,SACXqD,YAAY,SACZV,MAAOpC,EACP+C,QAAShB,EACTjG,MAAOG,IAAGF,EAAOiH,UAAWC,EAAAA,QAAYjH,KAAMiH,EAAAA,QAAYC,UAC1DP,SAAUd,O,SAKfA,EACC,gEAEA,SAAC9B,EAAQA,CAACC,aAAcA,EAAcC,WAAYA,OAM1D,G,mECzEIkD,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAO9D,GAAI,4gCA0CtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,qEAAqE,MAAQ,GAAG,SAAW,+XAA+X,eAAiB,CAAC,m3BAAm3B,WAAa,MAE14C4D,EAAwBrI,OAAS,CAChC,KAAQ,6BACR,UAAa,kCACb,QAAW,gCACX,QAAW,gCACX,UAAa,kCACb,KAAQ,8BAET,S,mECtDIqI,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAO9D,GAAI,oiBAyBtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,mEAAmE,MAAQ,GAAG,SAAW,+MAA+M,eAAiB,CAAC,ubAAub,WAAa,MAE5xB4D,EAAwBrI,OAAS,CAChC,KAAQ,6BACR,UAAW,gCACX,UAAa,mCAEd,S","sources":["webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskResultItem.module.css?17d3","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskResultItem.tsx","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskStatus.tsx","webpack://@ms-cloudpack/overlay/./src/components/CloudpackProvider/useTaskList.ts","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskList.tsx","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/StatusDialog.module.css?0d89","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/StatusDialog.tsx","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskResultItem.module.css","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/StatusDialog.module.css"],"sourcesContent":["\n import API from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/cjs.js??ruleSet[1].rules[0].oneOf[1].use[1]!./TaskResultItem.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/cjs.js??ruleSet[1].rules[0].oneOf[1].use[1]!./TaskResultItem.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import type { BundleMessage, BundleMessageLocation } from '@ms-cloudpack/common-types';\nimport type { FunctionComponent } from 'preact';\nimport cx from 'classnames';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport styles from './TaskResultItem.module.css';\nimport { Button } from '../Button/Button.js';\n\nexport interface TaskResultItemProps {\n item: BundleMessage;\n inputPath: string | undefined;\n /** 0-based index (will be adjusted for display) */\n index: number;\n type: 'error' | 'warning';\n}\n\n/**\n * Current and possible future bundler names, just to help with a friendlier error message\n * (we can't access the authoritative list from the bundler package here)\n */\nconst bundlerNames = ['ori', 'rollup', 'webpack', 'rspack', 'esbuild'];\n\n/**\n * Error or warning item in the details of a task/bundle result.\n */\nexport const TaskResultItem: FunctionComponent<TaskResultItemProps> = (props) => {\n const { item, inputPath, index, type } = props;\n const { location: loc, notes = [] } = item;\n\n // Update the message source to be more user-friendly. Usually it's either a bundler name,\n // or some internal of cloudpack, and since the user might not know about the different bundlers\n // and certainly doesn't know about cloudpack internals, a bit of context is helpful.\n const friendlySource = bundlerNames.includes(item.source) ? `${item.source} bundler` : `cloudpack ${item.source}`;\n\n return (\n <div class={styles.root}>\n <div class={cx(styles.statusBar, type === 'warning' && styles.warning)}></div>\n <div class={styles.content}>\n <div class={styles.titleArea}>\n {index + 1}. <ItemLocation loc={loc} inputPath={inputPath} /> (via: {friendlySource})\n </div>\n <pre class={styles.text}>{stripAnsi(item.text)}</pre>\n {notes.length > 0 && (\n // Formatting here might not be ideal, but messages very rarely have notes\n <details>\n <summary>Expand for more details</summary>\n <ul>\n {notes.map((note, i) => (\n <li key={i}>\n {note.location && (\n <>\n <ItemLocation loc={note.location} inputPath={inputPath} />\n <br />\n </>\n )}\n {note.text && <pre class={styles.text}>{stripAnsi(note.text)}</pre>}\n </li>\n ))}\n </ul>\n </details>\n )}\n </div>\n </div>\n );\n};\n\n/**\n * Remove ANSI codes from a string. (This is duplicated from `task-reporter` to avoid needing\n * browser support in that package, since the implementation is trivial.)\n */\nfunction stripAnsi(text: string): string {\n // eslint-disable-next-line no-control-regex -- supposed to match a control character\n return text.replace(/\\x1b\\[[\\d;]+(m|[AKB]\\b)/g, '');\n}\n\n/**\n * Return a link-button to open the source file, or a placeholder if the location is undefined.\n */\nconst ItemLocation: FunctionComponent<{ loc: BundleMessageLocation | undefined; inputPath: string | undefined }> = (\n props,\n) => {\n const { loc, inputPath } = props;\n const cloudpack = useCloudpack();\n\n if (!loc) {\n return '(path unavailable)';\n }\n\n const locationString = [loc.file, loc.line, loc.column].filter((val) => val !== undefined).join(':');\n // Don't make it clickable if we don't know the root path, or if the file path contains\n // webpack loader stuff. A real example:\n // ../../node_modules/.store/css-loader-virtual-bfb2cc7933/package/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!../../node_modules/.store/sass-loader-virtual-65ccb5bf2d/package/dist/cjs.js!./src/cssTest/example4.global.scss\n if (!inputPath || /[?!]/.test(locationString)) {\n return locationString;\n }\n\n const openSource = (): void => {\n if (!inputPath) return;\n void cloudpack.openCodeEditor.mutate({\n rootPath: inputPath,\n relativePath: loc.file,\n line: loc.line,\n column: loc.column,\n });\n };\n\n return (\n <Button variant=\"link\" onClick={openSource}>\n {locationString}\n </Button>\n );\n};\n","import type { FunctionComponent } from 'preact';\nimport type { TaskDescription } from '@ms-cloudpack/api-server/browser';\nimport { TaskResultItem } from './TaskResultItem.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport { Button } from '../Button/Button.js';\nimport {\n ResultsAccordion,\n ResultsAccordionContent,\n type ResultsAccordionProps,\n} from '../ResultsAccordion/ResultsAccordion.js';\nimport { Refresh20 } from '../icons/Refresh20.js';\n\nexport interface TaskStatusProps extends Pick<ResultsAccordionProps, 'index'> {\n task: TaskDescription;\n}\n\nfunction getCompletion(task: TaskDescription): string {\n if (task.status === 'pending') {\n return 'Running';\n }\n return [\n `Completed in ${task.duration}ms`,\n task.errors?.length && `${task.errors.length} error${task.errors.length > 1 ? 's' : ''}`,\n task.warnings?.length && `${task.warnings.length} warning${task.warnings.length > 1 ? 's' : ''}`,\n ]\n .filter(Boolean)\n .join(', ');\n}\n\n/**\n * Item (collapsible section) in the list of bundle task results in the StatusDialog.\n */\nexport const TaskStatus: FunctionComponent<TaskStatusProps> = (props) => {\n const { task } = props;\n const { name, warnings = [], errors = [], inputPath, outputPath } = task;\n const cloudpack = useCloudpack();\n\n const openPath = (rootPath: string) => void cloudpack.openFilePath.mutate({ rootPath });\n\n const openPackageJson = (): void => {\n if (!inputPath) return; // the button won't be shown in this case\n\n void cloudpack.openCodeEditor.mutate({\n rootPath: inputPath,\n relativePath: 'package.json',\n });\n };\n\n const restartTask = (): void => {\n if (!inputPath) return;\n\n void cloudpack.restartTask.mutate({ id: task.id, inputPath });\n };\n\n // This callback prevents rendering thousands of bundle result details unnecessarily.\n // It could be further optimized with useMemo etc if it's an actual performance issue.\n const getContent = () => (\n <>\n {inputPath ? (\n <ResultsAccordionContent\n itemName=\"Input path\"\n itemValue={\n <>\n <Button variant=\"link\" onClick={() => openPath(inputPath)}>\n {inputPath}\n </Button>{' '}\n (\n <Button variant=\"link\" onClick={openPackageJson}>\n package.json\n </Button>\n )\n </>\n }\n />\n ) : (\n 'No input path found for bundle task. This is a Cloudpack bug. Please report it.'\n )}\n {outputPath && (\n <ResultsAccordionContent\n itemName=\"Output path\"\n itemValue={\n <Button variant=\"link\" onClick={() => openPath(outputPath)}>\n {outputPath}\n </Button>\n }\n />\n )}\n {errors.length > 0 && (\n <ResultsAccordionContent title=\"Errors\">\n {errors.map((item, index) => (\n <TaskResultItem type=\"error\" key={index} item={item} inputPath={inputPath} index={index} />\n ))}\n </ResultsAccordionContent>\n )}\n {warnings.length > 0 && (\n <ResultsAccordionContent title=\"Warnings\">\n {warnings.map((item, index) => (\n <TaskResultItem type=\"warning\" key={index} item={item} inputPath={inputPath} index={index} />\n ))}\n </ResultsAccordionContent>\n )}\n </>\n );\n\n return (\n <ResultsAccordion\n name={name || '<unknown>'}\n index={props.index}\n result={errors.length ? 'error' : warnings.length ? 'warning' : 'success'}\n headerEndContent={getCompletion(task)}\n headerCommands={\n <Button\n variant=\"iconOnly\"\n onClick={restartTask}\n title=\"Re-bundle this package\"\n aria-label=\"Re-bundle this package\"\n >\n <Refresh20 />\n </Button>\n }\n getContent={getContent}\n />\n );\n};\n","import { useEffect, useState } from 'preact/hooks';\nimport { useCloudpack } from './CloudpackProvider.js';\nimport { taskListSource, type TaskList } from '@ms-cloudpack/api-server/browser';\n\nexport const useTaskList = (): TaskList => {\n const cloudpack = useCloudpack();\n const [taskList, setTaskList] = useState<TaskList>({ tasks: [] });\n\n useEffect(() => {\n const subscription = cloudpack?.onDataChanged.subscribe(taskListSource, {\n onData: (data) => {\n setTaskList(data as TaskList);\n },\n });\n\n return () => {\n subscription.unsubscribe();\n };\n }, [cloudpack]);\n\n return taskList;\n};\n","import type { FunctionComponent } from 'preact';\nimport { TaskStatus } from './TaskStatus.js';\nimport { useTaskList } from '../CloudpackProvider/useTaskList.js';\nimport type { TaskDescription } from '@ms-cloudpack/api-server/browser';\n\nexport interface TaskListProps {\n searchFilter: string;\n issuesOnly: boolean;\n}\n\n/**\n * List of task results to be displayed inside the StatusDialog.\n */\nexport const TaskList: FunctionComponent<TaskListProps> = ({ searchFilter, issuesOnly }) => {\n const taskList = useTaskList();\n\n let filteredTasks = [...taskList.tasks].sort(sortTasks);\n if (searchFilter) {\n searchFilter = searchFilter.toLowerCase();\n filteredTasks = filteredTasks.filter(({ name }) => name?.toLowerCase().includes(searchFilter));\n }\n if (issuesOnly) {\n filteredTasks = filteredTasks.filter(({ errors, warnings }) => errors?.length || warnings?.length);\n }\n\n // These must be wrapped in a fragment for proper layout by the Dialog\n return (\n <>\n {filteredTasks.map((task, index) => (\n <TaskStatus key={task.name} index={index} task={task} />\n ))}\n </>\n );\n};\n\n/**\n * Really the server should be sorting. Get stuff out of the browser.\n */\nfunction sortTasks(a: TaskDescription, b: TaskDescription): number {\n const aStatus = a.status === 'pending' ? 1 : 0;\n const bStatus = b.status === 'pending' ? 1 : 0;\n\n if (aStatus !== bStatus) {\n return aStatus > bStatus ? -1 : 1;\n }\n\n const aErrors = a.errors?.length || 0;\n const bErrors = b.errors?.length || 0;\n\n if (aErrors !== bErrors) {\n return aErrors > bErrors ? -1 : 1;\n }\n\n if (a.name === undefined && b.name === undefined) {\n return a.id < b.id ? -1 : 1;\n } else if (a.name === undefined) {\n return 1;\n } else if (b.name === undefined) {\n return -1;\n }\n\n return a.name < b.name ? -1 : 1;\n}\n","\n import API from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/cjs.js??ruleSet[1].rules[0].oneOf[1].use[1]!./StatusDialog.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/cjs.js??ruleSet[1].rules[0].oneOf[1].use[1]!./StatusDialog.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import cx from 'classnames';\nimport type { FunctionComponent, InputHTMLAttributes } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { TaskList } from './TaskList.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport { Button } from '../Button/Button.js';\nimport { Dialog } from '../Dialog/Dialog.js';\nimport { elementIds } from '../../constants.js';\nimport styles from './StatusDialog.module.css';\nimport inputStyles from '../Button/inputCommon.module.css';\nimport { Refresh20 } from '../icons/Refresh20.js';\n\nexport interface StatusDialogProps {\n onClose: () => void;\n}\n\nexport const StatusDialog: FunctionComponent<StatusDialogProps> = ({ onClose }) => {\n const cloudpack = useCloudpack();\n const [searchFilter, setSearchFilter] = useState('');\n const [issuesOnly, setIssuesOnly] = useState(false);\n const [isRestarting, setIsRestarting] = useState(false);\n\n const handleSearchChange = useCallback<NonNullable<InputHTMLAttributes['onInput']>>((event) => {\n event.preventDefault();\n setSearchFilter((event.target as HTMLInputElement).value);\n }, []);\n\n const restartAllTasks = () => {\n setIsRestarting(true);\n void cloudpack.restartAllTasks.mutate();\n };\n\n const toggleIssuesOnly = () => void setIssuesOnly((value) => !value);\n\n return (\n <Dialog\n title=\"Cloudpack bundle results\"\n id={elementIds.statusDialogRoot}\n draggable\n // Prevent closing the dialog and disable all the controls while restarting, to hopefully\n // avoid confusion (restarting currently involves clearing the whole cache and may take awhile).\n onClose={isRestarting ? undefined : onClose}\n commands={\n <>\n {/* Disable the button after it's clicked since the operation may take awhile, and the\n page will refresh when finished.\n TODO: ideally we'd have a spinner while restarting (this could probably be done by\n animating the refresh icon) */}\n <Button variant=\"primary\" onClick={restartAllTasks} disabled={isRestarting}>\n {/* the refresh icon spins while restarting to show something is happening */}\n <Refresh20 class={cx(isRestarting && styles.spin)} /> Re-bundle all packages\n </Button>\n <Button onClick={toggleIssuesOnly} disabled={isRestarting}>\n {issuesOnly ? 'Show all packages' : 'Show packages with issues'}\n </Button>\n <input\n type=\"text\"\n aria-label=\"Search\"\n placeholder=\"Search\"\n value={searchFilter}\n onInput={handleSearchChange}\n class={cx(styles.searchbox, inputStyles.root, inputStyles.standard)}\n disabled={isRestarting}\n />\n </>\n }\n >\n {isRestarting ? (\n 'Preparing to re-bundle (the page will refresh when ready)...'\n ) : (\n <TaskList searchFilter={searchFilter} issuesOnly={issuesOnly} />\n )}\n </Dialog>\n );\n};\n\nexport default StatusDialog;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.root__Rl6XMfFcB4M4Sp5RJbh8 {\n display: flex;\n background: var(--cp-neutralLighter);\n}\n\n/* left border color indicator */\n.statusBar__RsdQpgzZbI9fI4mSfjJX {\n flex-shrink: 0;\n border-radius: 4px;\n width: 4px;\n background: var(--cp-errorDark);\n box-shadow: 2px 0 4px 0 var(--cp-errorTransparent);\n}\n.statusBar__RsdQpgzZbI9fI4mSfjJX.warning__EcBSTvORlKqFlDbz3mr9 {\n background: var(--cp-warningDark);\n box-shadow: 2px 0 4px 0 var(--cp-warningTransparent);\n}\n\n/* everything but the status bar */\n.content__oaWQstIJN1TotKTOLcwX {\n padding: 8px;\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n flex-direction: column;\n}\n\n/* file path and error source */\n.titleArea__NUKs26I_j0KAivvaQbz4 {\n padding: 4px 0;\n font-weight: 500;\n}\n\n/* pre with error details */\n.text__qXRXiNO7j_FMkOf4b1Hi {\n word-wrap: break-word;\n white-space: pre-wrap;\n color: var(--cp-text);\n /* monospace fonts tend to have tight line-height and be too large */\n line-height: 1.5em;\n font-size: 0.9em;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/StatusDialog/TaskResultItem.module.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,oCAAoC;AACtC;;AAEA,gCAAgC;AAChC;EACE,cAAc;EACd,kBAAkB;EAClB,UAAU;EACV,+BAA+B;EAC/B,kDAAkD;AACpD;AACA;EACE,iCAAiC;EACjC,oDAAoD;AACtD;;AAEA,kCAAkC;AAClC;EACE,YAAY;EACZ,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,sBAAsB;AACxB;;AAEA,+BAA+B;AAC/B;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA,2BAA2B;AAC3B;EACE,qBAAqB;EACrB,qBAAqB;EACrB,qBAAqB;EACrB,oEAAoE;EACpE,kBAAkB;EAClB,gBAAgB;AAClB\",\"sourcesContent\":[\".root {\\n display: flex;\\n background: var(--cp-neutralLighter);\\n}\\n\\n/* left border color indicator */\\n.statusBar {\\n flex-shrink: 0;\\n border-radius: 4px;\\n width: 4px;\\n background: var(--cp-errorDark);\\n box-shadow: 2px 0 4px 0 var(--cp-errorTransparent);\\n}\\n.statusBar.warning {\\n background: var(--cp-warningDark);\\n box-shadow: 2px 0 4px 0 var(--cp-warningTransparent);\\n}\\n\\n/* everything but the status bar */\\n.content {\\n padding: 8px;\\n display: flex;\\n flex-grow: 1;\\n overflow: hidden;\\n flex-direction: column;\\n}\\n\\n/* file path and error source */\\n.titleArea {\\n padding: 4px 0;\\n font-weight: 500;\\n}\\n\\n/* pre with error details */\\n.text {\\n word-wrap: break-word;\\n white-space: pre-wrap;\\n color: var(--cp-text);\\n /* monospace fonts tend to have tight line-height and be too large */\\n line-height: 1.5em;\\n font-size: 0.9em;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"root\": `root__Rl6XMfFcB4M4Sp5RJbh8`,\n\t\"statusBar\": `statusBar__RsdQpgzZbI9fI4mSfjJX`,\n\t\"warning\": `warning__EcBSTvORlKqFlDbz3mr9`,\n\t\"content\": `content__oaWQstIJN1TotKTOLcwX`,\n\t\"titleArea\": `titleArea__NUKs26I_j0KAivvaQbz4`,\n\t\"text\": `text__qXRXiNO7j_FMkOf4b1Hi`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `@keyframes cp-spin__gcFQred791GFVqluefOr {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.spin__cSlR0KG2ydLnzVkkbwdj {\n animation: cp-spin__gcFQred791GFVqluefOr 1s linear infinite;\n}\n\n.searchbox__LfVxJ7Te2Dle6scWlkNw {\n background-color: var(--cp-white);\n font-weight: 400;\n box-shadow: none;\n padding: 0px 8px;\n min-width: 160px;\n /* align to far right */\n margin-left: auto;\n}\n.searchbox__LfVxJ7Te2Dle6scWlkNw:disabled::placeholder {\n color: var(--cp-textDisabled);\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/StatusDialog/StatusDialog.module.css\"],\"names\":[],\"mappings\":\"AAAA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;;AAEA;EACE,2DAAqC;AACvC;;AAEA;EACE,iCAAiC;EACjC,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,uBAAuB;EACvB,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B\",\"sourcesContent\":[\"@keyframes cp-spin {\\n 0% {\\n transform: rotate(0deg);\\n }\\n 100% {\\n transform: rotate(360deg);\\n }\\n}\\n\\n.spin {\\n animation: cp-spin 1s linear infinite;\\n}\\n\\n.searchbox {\\n background-color: var(--cp-white);\\n font-weight: 400;\\n box-shadow: none;\\n padding: 0px 8px;\\n min-width: 160px;\\n /* align to far right */\\n margin-left: auto;\\n}\\n.searchbox:disabled::placeholder {\\n color: var(--cp-textDisabled);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"spin\": `spin__cSlR0KG2ydLnzVkkbwdj`,\n\t\"cp-spin\": `cp-spin__gcFQred791GFVqluefOr`,\n\t\"searchbox\": `searchbox__LfVxJ7Te2Dle6scWlkNw`\n};\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","bundlerNames","TaskResultItem","props","item","inputPath","index","type","location","loc","notes","friendlySource","includes","source","div","class","styles","root","cx","statusBar","warning","content","titleArea","ItemLocation","pre","text","stripAnsi","length","details","summary","ul","map","note","i","li","br","replace","cloudpack","useCloudpack","locationString","file","line","column","filter","val","join","test","Button","variant","onClick","openCodeEditor","mutate","rootPath","relativePath","getCompletion","task","status","duration","errors","warnings","Boolean","TaskStatus","name","outputPath","openPath","openFilePath","openPackageJson","ResultsAccordion","result","headerEndContent","headerCommands","restartTask","id","title","aria-label","Refresh20","getContent","ResultsAccordionContent","itemName","itemValue","TaskList","searchFilter","issuesOnly","filteredTasks","taskList","setTaskList","useState","tasks","useEffect","subscription","onDataChanged","subscribe","taskListSource","onData","data","unsubscribe","useTaskList","sort","sortTasks","toLowerCase","a","b","aStatus","bStatus","aErrors","bErrors","StatusDialog","onClose","setSearchFilter","setIssuesOnly","isRestarting","setIsRestarting","handleSearchChange","useCallback","event","preventDefault","target","value","Dialog","elementIds","statusDialogRoot","draggable","commands","restartAllTasks","disabled","spin","input","placeholder","onInput","searchbox","inputStyles","standard","___CSS_LOADER_EXPORT___","push","module"],"ignoreList":[],"sourceRoot":""}
1
+ {"version":3,"file":"222.chunk.js","mappings":"kLAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GA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,EACP+C,QAAShB,EACThG,MAAOG,IAAGF,EAAOgH,UAAWC,EAAAA,QAAYhH,KAAMgH,EAAAA,QAAYC,UAC1DP,SAAUd,O,SAKfA,EACC,gEAEA,SAAC9B,EAAQA,CAACC,aAAcA,EAAcC,WAAYA,OAM1D,G","sources":["webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/StatusDialog.module.css","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskResultItem.module.css","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskResultItem.module.css?17d3","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskResultItem.tsx","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskStatus.tsx","webpack://@ms-cloudpack/overlay/./src/components/CloudpackProvider/useTaskList.ts","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/TaskList.tsx","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/StatusDialog.module.css?0d89","webpack://@ms-cloudpack/overlay/./src/components/StatusDialog/StatusDialog.tsx"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `@keyframes cp-spin__gcFQred791GFVqluefOr {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.spin__cSlR0KG2ydLnzVkkbwdj {\n animation: cp-spin__gcFQred791GFVqluefOr 1s linear infinite;\n}\n\n.searchbox__LfVxJ7Te2Dle6scWlkNw {\n background-color: var(--cp-white);\n font-weight: 400;\n box-shadow: none;\n padding: 0px 8px;\n min-width: 160px;\n /* align to far right */\n margin-left: auto;\n}\n.searchbox__LfVxJ7Te2Dle6scWlkNw:disabled::placeholder {\n color: var(--cp-textDisabled);\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/StatusDialog/StatusDialog.module.css\"],\"names\":[],\"mappings\":\"AAAA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;;AAEA;EACE,2DAAqC;AACvC;;AAEA;EACE,iCAAiC;EACjC,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,uBAAuB;EACvB,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B\",\"sourcesContent\":[\"@keyframes cp-spin {\\n 0% {\\n transform: rotate(0deg);\\n }\\n 100% {\\n transform: rotate(360deg);\\n }\\n}\\n\\n.spin {\\n animation: cp-spin 1s linear infinite;\\n}\\n\\n.searchbox {\\n background-color: var(--cp-white);\\n font-weight: 400;\\n box-shadow: none;\\n padding: 0px 8px;\\n min-width: 160px;\\n /* align to far right */\\n margin-left: auto;\\n}\\n.searchbox:disabled::placeholder {\\n color: var(--cp-textDisabled);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"spin\": `spin__cSlR0KG2ydLnzVkkbwdj`,\n\t\"cp-spin\": `cp-spin__gcFQred791GFVqluefOr`,\n\t\"searchbox\": `searchbox__LfVxJ7Te2Dle6scWlkNw`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.root__Rl6XMfFcB4M4Sp5RJbh8 {\n display: flex;\n background: var(--cp-neutralLighter);\n}\n\n/* left border color indicator */\n.statusBar__RsdQpgzZbI9fI4mSfjJX {\n flex-shrink: 0;\n border-radius: 4px;\n width: 4px;\n background: var(--cp-errorDark);\n box-shadow: 2px 0 4px 0 var(--cp-errorTransparent);\n}\n.statusBar__RsdQpgzZbI9fI4mSfjJX.warning__EcBSTvORlKqFlDbz3mr9 {\n background: var(--cp-warningDark);\n box-shadow: 2px 0 4px 0 var(--cp-warningTransparent);\n}\n\n/* everything but the status bar */\n.content__oaWQstIJN1TotKTOLcwX {\n padding: 8px;\n display: flex;\n flex-grow: 1;\n overflow: hidden;\n flex-direction: column;\n}\n\n/* file path and error source */\n.titleArea__NUKs26I_j0KAivvaQbz4 {\n padding: 4px 0;\n font-weight: 500;\n}\n\n/* pre with error details */\n.text__qXRXiNO7j_FMkOf4b1Hi {\n word-wrap: break-word;\n white-space: pre-wrap;\n color: var(--cp-text);\n /* monospace fonts tend to have tight line-height and be too large */\n line-height: 1.5em;\n font-size: 0.9em;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/StatusDialog/TaskResultItem.module.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,aAAa;EACb,oCAAoC;AACtC;;AAEA,gCAAgC;AAChC;EACE,cAAc;EACd,kBAAkB;EAClB,UAAU;EACV,+BAA+B;EAC/B,kDAAkD;AACpD;AACA;EACE,iCAAiC;EACjC,oDAAoD;AACtD;;AAEA,kCAAkC;AAClC;EACE,YAAY;EACZ,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,sBAAsB;AACxB;;AAEA,+BAA+B;AAC/B;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA,2BAA2B;AAC3B;EACE,qBAAqB;EACrB,qBAAqB;EACrB,qBAAqB;EACrB,oEAAoE;EACpE,kBAAkB;EAClB,gBAAgB;AAClB\",\"sourcesContent\":[\".root {\\n display: flex;\\n background: var(--cp-neutralLighter);\\n}\\n\\n/* left border color indicator */\\n.statusBar {\\n flex-shrink: 0;\\n border-radius: 4px;\\n width: 4px;\\n background: var(--cp-errorDark);\\n box-shadow: 2px 0 4px 0 var(--cp-errorTransparent);\\n}\\n.statusBar.warning {\\n background: var(--cp-warningDark);\\n box-shadow: 2px 0 4px 0 var(--cp-warningTransparent);\\n}\\n\\n/* everything but the status bar */\\n.content {\\n padding: 8px;\\n display: flex;\\n flex-grow: 1;\\n overflow: hidden;\\n flex-direction: column;\\n}\\n\\n/* file path and error source */\\n.titleArea {\\n padding: 4px 0;\\n font-weight: 500;\\n}\\n\\n/* pre with error details */\\n.text {\\n word-wrap: break-word;\\n white-space: pre-wrap;\\n color: var(--cp-text);\\n /* monospace fonts tend to have tight line-height and be too large */\\n line-height: 1.5em;\\n font-size: 0.9em;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"root\": `root__Rl6XMfFcB4M4Sp5RJbh8`,\n\t\"statusBar\": `statusBar__RsdQpgzZbI9fI4mSfjJX`,\n\t\"warning\": `warning__EcBSTvORlKqFlDbz3mr9`,\n\t\"content\": `content__oaWQstIJN1TotKTOLcwX`,\n\t\"titleArea\": `titleArea__NUKs26I_j0KAivvaQbz4`,\n\t\"text\": `text__qXRXiNO7j_FMkOf4b1Hi`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\n import API from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/cjs.js??ruleSet[1].rules[0].oneOf[1].use[1]!./TaskResultItem.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/cjs.js??ruleSet[1].rules[0].oneOf[1].use[1]!./TaskResultItem.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import type { BundleMessage, BundleMessageLocation } from '@ms-cloudpack/common-types';\nimport type { FunctionComponent } from 'preact';\nimport cx from 'classnames';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport styles from './TaskResultItem.module.css';\nimport { Button } from '../Button/Button.js';\n\nexport interface TaskResultItemProps {\n item: BundleMessage;\n inputPath: string | undefined;\n /** 0-based index (will be adjusted for display) */\n index: number;\n type: 'error' | 'warning';\n}\n\n/**\n * Current and possible future bundler names, just to help with a friendlier error message\n * (we can't access the authoritative list from the bundler package here)\n */\nconst bundlerNames = ['ori', 'rollup', 'webpack', 'rspack', 'esbuild'];\n\n/**\n * Error or warning item in the details of a task/bundle result.\n */\nexport const TaskResultItem: FunctionComponent<TaskResultItemProps> = (props) => {\n const { item, inputPath, index, type } = props;\n const { location: loc, notes = [] } = item;\n\n // Update the message source to be more user-friendly. Usually it's either a bundler name,\n // or some internal of cloudpack, and since the user might not know about the different bundlers\n // and certainly doesn't know about cloudpack internals, a bit of context is helpful.\n const friendlySource = bundlerNames.includes(item.source) ? `${item.source} bundler` : `cloudpack ${item.source}`;\n\n return (\n <div class={styles.root}>\n <div class={cx(styles.statusBar, type === 'warning' && styles.warning)}></div>\n <div class={styles.content}>\n <div class={styles.titleArea}>\n {index + 1}. <ItemLocation loc={loc} inputPath={inputPath} /> (via: {friendlySource})\n </div>\n <pre class={styles.text}>{stripAnsi(item.text)}</pre>\n {notes.length > 0 && (\n // Formatting here might not be ideal, but messages very rarely have notes\n <details>\n <summary>Expand for more details</summary>\n <ul>\n {notes.map((note, i) => (\n <li key={i}>\n {note.location && (\n <>\n <ItemLocation loc={note.location} inputPath={inputPath} />\n <br />\n </>\n )}\n {note.text && <pre class={styles.text}>{stripAnsi(note.text)}</pre>}\n </li>\n ))}\n </ul>\n </details>\n )}\n </div>\n </div>\n );\n};\n\n/**\n * Remove ANSI codes from a string. (This is duplicated from `task-reporter` to avoid needing\n * browser support in that package, since the implementation is trivial.)\n */\nfunction stripAnsi(text: string): string {\n // eslint-disable-next-line no-control-regex -- supposed to match a control character\n return text.replace(/\\x1b\\[[\\d;]+(m|[AKB]\\b)/g, '');\n}\n\n/**\n * Return a link-button to open the source file, or a placeholder if the location is undefined.\n */\nconst ItemLocation: FunctionComponent<{ loc: BundleMessageLocation | undefined; inputPath: string | undefined }> = (\n props,\n) => {\n const { loc, inputPath } = props;\n const cloudpack = useCloudpack();\n\n if (!loc) {\n return '(path unavailable)';\n }\n\n const locationString = [loc.file, loc.line, loc.column].filter((val) => val !== undefined).join(':');\n // Don't make it clickable if we don't know the root path, or if the file path contains\n // webpack loader stuff. A real example:\n // ../../node_modules/.store/css-loader-virtual-bfb2cc7933/package/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!../../node_modules/.store/sass-loader-virtual-65ccb5bf2d/package/dist/cjs.js!./src/cssTest/example4.global.scss\n if (!inputPath || /[?!]/.test(locationString)) {\n return locationString;\n }\n\n const openSource = (): void => {\n if (!inputPath) return;\n void cloudpack.openCodeEditor.mutate({\n rootPath: inputPath,\n relativePath: loc.file,\n line: loc.line,\n column: loc.column,\n });\n };\n\n return (\n <Button variant=\"link\" onClick={openSource}>\n {locationString}\n </Button>\n );\n};\n","import type { FunctionComponent } from 'preact';\nimport type { TaskDescription } from '@ms-cloudpack/api-server/browser';\nimport { TaskResultItem } from './TaskResultItem.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport { Button } from '../Button/Button.js';\nimport {\n ResultsAccordion,\n ResultsAccordionContent,\n type ResultsAccordionProps,\n} from '../ResultsAccordion/ResultsAccordion.js';\nimport { Refresh20 } from '../icons/Refresh20.js';\n\nexport interface TaskStatusProps extends Pick<ResultsAccordionProps, 'index'> {\n task: TaskDescription;\n}\n\nfunction getCompletion(task: TaskDescription): string {\n if (task.status === 'pending') {\n return 'Running';\n }\n return [\n `Completed in ${task.duration}ms`,\n task.errors?.length && `${task.errors.length} error${task.errors.length > 1 ? 's' : ''}`,\n task.warnings?.length && `${task.warnings.length} warning${task.warnings.length > 1 ? 's' : ''}`,\n ]\n .filter(Boolean)\n .join(', ');\n}\n\n/**\n * Item (collapsible section) in the list of bundle task results in the StatusDialog.\n */\nexport const TaskStatus: FunctionComponent<TaskStatusProps> = (props) => {\n const { task } = props;\n const { name, warnings = [], errors = [], inputPath, outputPath } = task;\n const cloudpack = useCloudpack();\n\n const openPath = (rootPath: string) => void cloudpack.openFilePath.mutate({ rootPath });\n\n const openPackageJson = (): void => {\n if (!inputPath) return; // the button won't be shown in this case\n\n void cloudpack.openCodeEditor.mutate({\n rootPath: inputPath,\n relativePath: 'package.json',\n });\n };\n\n const restartTask = (): void => {\n if (!inputPath) return;\n\n void cloudpack.restartTask.mutate({ id: task.id, inputPath });\n };\n\n // This callback prevents rendering thousands of bundle result details unnecessarily.\n // It could be further optimized with useMemo etc if it's an actual performance issue.\n const getContent = () => (\n <>\n {inputPath ? (\n <ResultsAccordionContent\n itemName=\"Input path\"\n itemValue={\n <>\n <Button variant=\"link\" onClick={() => openPath(inputPath)}>\n {inputPath}\n </Button>{' '}\n (\n <Button variant=\"link\" onClick={openPackageJson}>\n package.json\n </Button>\n )\n </>\n }\n />\n ) : (\n 'No input path found for bundle task. This is a Cloudpack bug. Please report it.'\n )}\n {outputPath && (\n <ResultsAccordionContent\n itemName=\"Output path\"\n itemValue={\n <Button variant=\"link\" onClick={() => openPath(outputPath)}>\n {outputPath}\n </Button>\n }\n />\n )}\n {errors.length > 0 && (\n <ResultsAccordionContent title=\"Errors\">\n {errors.map((item, index) => (\n <TaskResultItem type=\"error\" key={index} item={item} inputPath={inputPath} index={index} />\n ))}\n </ResultsAccordionContent>\n )}\n {warnings.length > 0 && (\n <ResultsAccordionContent title=\"Warnings\">\n {warnings.map((item, index) => (\n <TaskResultItem type=\"warning\" key={index} item={item} inputPath={inputPath} index={index} />\n ))}\n </ResultsAccordionContent>\n )}\n </>\n );\n\n return (\n <ResultsAccordion\n name={name || '<unknown>'}\n index={props.index}\n result={errors.length ? 'error' : warnings.length ? 'warning' : 'success'}\n headerEndContent={getCompletion(task)}\n headerCommands={\n <Button\n variant=\"iconOnly\"\n onClick={restartTask}\n title=\"Re-bundle this package\"\n aria-label=\"Re-bundle this package\"\n >\n <Refresh20 />\n </Button>\n }\n getContent={getContent}\n />\n );\n};\n","import { useEffect, useState } from 'preact/hooks';\nimport { useCloudpack } from './CloudpackProvider.js';\nimport { taskListSource, type TaskList } from '@ms-cloudpack/api-server/browser';\n\nexport const useTaskList = (): TaskList => {\n const cloudpack = useCloudpack();\n const [taskList, setTaskList] = useState<TaskList>({ tasks: [] });\n\n useEffect(() => {\n const subscription = cloudpack?.onDataChanged.subscribe(taskListSource, {\n onData: (data) => {\n setTaskList(data as TaskList);\n },\n });\n\n return () => {\n subscription.unsubscribe();\n };\n }, [cloudpack]);\n\n return taskList;\n};\n","import type { FunctionComponent } from 'preact';\nimport { TaskStatus } from './TaskStatus.js';\nimport { useTaskList } from '../CloudpackProvider/useTaskList.js';\nimport type { TaskDescription } from '@ms-cloudpack/api-server/browser';\n\nexport interface TaskListProps {\n searchFilter: string;\n issuesOnly: boolean;\n}\n\n/**\n * List of task results to be displayed inside the StatusDialog.\n */\nexport const TaskList: FunctionComponent<TaskListProps> = ({ searchFilter, issuesOnly }) => {\n const taskList = useTaskList();\n\n let filteredTasks = [...taskList.tasks].sort(sortTasks);\n if (searchFilter) {\n searchFilter = searchFilter.toLowerCase();\n filteredTasks = filteredTasks.filter(({ name }) => name?.toLowerCase().includes(searchFilter));\n }\n if (issuesOnly) {\n filteredTasks = filteredTasks.filter(({ errors, warnings }) => errors?.length || warnings?.length);\n }\n\n // These must be wrapped in a fragment for proper layout by the Dialog\n return (\n <>\n {filteredTasks.map((task, index) => (\n <TaskStatus key={task.name} index={index} task={task} />\n ))}\n </>\n );\n};\n\n/**\n * Really the server should be sorting. Get stuff out of the browser.\n */\nfunction sortTasks(a: TaskDescription, b: TaskDescription): number {\n const aStatus = a.status === 'pending' ? 1 : 0;\n const bStatus = b.status === 'pending' ? 1 : 0;\n\n if (aStatus !== bStatus) {\n return aStatus > bStatus ? -1 : 1;\n }\n\n const aErrors = a.errors?.length || 0;\n const bErrors = b.errors?.length || 0;\n\n if (aErrors !== bErrors) {\n return aErrors > bErrors ? -1 : 1;\n }\n\n if (a.name === undefined && b.name === undefined) {\n return a.id < b.id ? -1 : 1;\n } else if (a.name === undefined) {\n return 1;\n } else if (b.name === undefined) {\n return -1;\n }\n\n return a.name < b.name ? -1 : 1;\n}\n","\n import API from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/.store/style-loader-virtual-bd73274477/package/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/cjs.js??ruleSet[1].rules[0].oneOf[1].use[1]!./StatusDialog.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/.store/css-loader-virtual-87b47c2180/package/dist/cjs.js??ruleSet[1].rules[0].oneOf[1].use[1]!./StatusDialog.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import cx from 'classnames';\nimport type { FunctionComponent, InputHTMLAttributes } from 'preact';\nimport { useCallback, useState } from 'preact/hooks';\nimport { TaskList } from './TaskList.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport { Button } from '../Button/Button.js';\nimport { Dialog } from '../Dialog/Dialog.js';\nimport { elementIds } from '../../constants.js';\nimport styles from './StatusDialog.module.css';\nimport inputStyles from '../Button/inputCommon.module.css';\nimport { Refresh20 } from '../icons/Refresh20.js';\n\nexport interface StatusDialogProps {\n onClose: () => void;\n}\n\nexport const StatusDialog: FunctionComponent<StatusDialogProps> = ({ onClose }) => {\n const cloudpack = useCloudpack();\n const [searchFilter, setSearchFilter] = useState('');\n const [issuesOnly, setIssuesOnly] = useState(false);\n const [isRestarting, setIsRestarting] = useState(false);\n\n const handleSearchChange = useCallback<NonNullable<InputHTMLAttributes['onInput']>>((event) => {\n event.preventDefault();\n setSearchFilter((event.target as HTMLInputElement).value);\n }, []);\n\n const restartAllTasks = () => {\n setIsRestarting(true);\n void cloudpack.restartAllTasks.mutate();\n };\n\n const toggleIssuesOnly = () => void setIssuesOnly((value) => !value);\n\n return (\n <Dialog\n title=\"Cloudpack bundle results\"\n id={elementIds.statusDialogRoot}\n draggable\n // Prevent closing the dialog and disable all the controls while restarting, to hopefully\n // avoid confusion (restarting currently involves clearing the whole cache and may take awhile).\n onClose={isRestarting ? undefined : onClose}\n commands={\n <>\n {/* Disable the button after it's clicked since the operation may take awhile, and the\n page will refresh when finished.\n TODO: ideally we'd have a spinner while restarting (this could probably be done by\n animating the refresh icon) */}\n <Button variant=\"primary\" onClick={restartAllTasks} disabled={isRestarting}>\n {/* the refresh icon spins while restarting to show something is happening */}\n <Refresh20 class={cx(isRestarting && styles.spin)} /> Re-bundle all packages\n </Button>\n <Button onClick={toggleIssuesOnly} disabled={isRestarting}>\n {issuesOnly ? 'Show all packages' : 'Show packages with issues'}\n </Button>\n <input\n type=\"text\"\n aria-label=\"Search\"\n placeholder=\"Search\"\n value={searchFilter}\n onInput={handleSearchChange}\n class={cx(styles.searchbox, inputStyles.root, inputStyles.standard)}\n disabled={isRestarting}\n />\n </>\n }\n >\n {isRestarting ? (\n 'Preparing to re-bundle (the page will refresh when ready)...'\n ) : (\n <TaskList searchFilter={searchFilter} issuesOnly={issuesOnly} />\n )}\n </Dialog>\n );\n};\n\nexport default StatusDialog;\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","bundlerNames","TaskResultItem","props","item","inputPath","index","type","location","loc","notes","friendlySource","includes","source","div","class","styles","root","cx","statusBar","warning","content","titleArea","ItemLocation","pre","text","stripAnsi","length","details","summary","ul","map","note","i","li","br","replace","cloudpack","useCloudpack","locationString","file","line","column","filter","val","join","test","Button","variant","onClick","openCodeEditor","mutate","rootPath","relativePath","getCompletion","task","status","duration","errors","warnings","Boolean","TaskStatus","name","outputPath","openPath","openFilePath","openPackageJson","ResultsAccordion","result","headerEndContent","headerCommands","restartTask","title","aria-label","Refresh20","getContent","ResultsAccordionContent","itemName","itemValue","TaskList","searchFilter","issuesOnly","filteredTasks","taskList","setTaskList","useState","tasks","useEffect","subscription","onDataChanged","subscribe","taskListSource","onData","data","unsubscribe","useTaskList","sort","sortTasks","toLowerCase","a","b","aStatus","bStatus","aErrors","bErrors","StatusDialog","onClose","setSearchFilter","setIssuesOnly","isRestarting","setIsRestarting","handleSearchChange","useCallback","event","preventDefault","target","value","Dialog","elementIds","statusDialogRoot","draggable","commands","restartAllTasks","disabled","spin","input","placeholder","onInput","searchbox","inputStyles","standard"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see 337.chunk.js.LICENSE.txt */
2
- export const __webpack_esm_id__=337;export const __webpack_esm_ids__=[337];export const __webpack_esm_modules__={337(e,t,o){o.d(t,{registerReactRefresh:()=>r});var n=o(567);const r=()=>{n.injectIntoGlobalHook(window),window.$RefreshReg$=(e,t)=>{n.register(e,t)},window.$RefreshSig$=()=>n.createSignatureFunctionForTransform(),window.$RefreshRuntime$=n,console.log("[React Refresh] Runtime initialized")}},567(e,t){!function(){function e(t){if(null!==t.fullKey)return t.fullKey;var o=t.ownKey;try{var n=t.getCustomHooks()}catch(e){return t.forceReset=!0,t.fullKey=o}for(var r=0;r<n.length;r++){var i=n[r];if("function"!=typeof i)return t.forceReset=!0,t.fullKey=o;if(void 0!==(i=p.get(i))){var a=e(i);i.forceReset&&(t.forceReset=!0),o+="\n---\n"+a}}return t.fullKey=o}function o(e){return d.get(e)}function n(e){var t=new Set;return e.forEach(function(e){t.add(e)}),t}function r(e,t){try{return e[t]}catch(e){}}function i(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=3<arguments.length?arguments[3]:void 0;if(p.has(e)||p.set(e,{forceReset:o,ownKey:t,fullKey:null,getCustomHooks:n||function(){return[]}}),"object"==typeof e&&null!==e)switch(r(e,"$$typeof")){case f:i(e.render,t,o,n);break;case c:i(e.type,t,o,n)}}function a(t){void 0!==(t=p.get(t))&&e(t)}var f=Symbol.for("react.forward_ref"),c=Symbol.for("react.memo"),u="function"==typeof WeakMap?WeakMap:Map,s=new Map,l=new u,p=new u,d=new u,h=[],y=new Map,m=new Map,_=new Set,R=new Set,v="function"==typeof WeakMap?new WeakMap:null,g=!1;t._getMountedRootCount=function(){return _.size},t.collectCustomHooksForSignature=a,t.createSignatureFunctionForTransform=function(){var e,t,o=!1;return function(n,r,f,c){if("string"==typeof r)return e||(e=n,t="function"==typeof c),null==n||"function"!=typeof n&&"object"!=typeof n||i(n,r,f,c),n;!o&&t&&(o=!0,a(e))}},t.getFamilyByID=function(e){return s.get(e)},t.getFamilyByType=function(e){return l.get(e)},t.hasUnrecoverableErrors=function(){return!1},t.injectIntoGlobalHook=function(e){var t=e.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(void 0===t){var o=0;e.__REACT_DEVTOOLS_GLOBAL_HOOK__=t={renderers:new Map,supportsFiber:!0,inject:function(){return o++},onScheduleFiberRoot:function(){},onCommitFiberRoot:function(){},onCommitFiberUnmount:function(){}}}if(t.isDisabled)console.warn("Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled.");else{var n=t.inject;t.inject=function(e){var t=n.apply(this,arguments);return"function"==typeof e.scheduleRefresh&&"function"==typeof e.setRefreshHandler&&y.set(t,e),t},t.renderers.forEach(function(e,t){"function"==typeof e.scheduleRefresh&&"function"==typeof e.setRefreshHandler&&y.set(t,e)});var r=t.onCommitFiberRoot,i=t.onScheduleFiberRoot||function(){};t.onScheduleFiberRoot=function(e,t,o){return g||(R.delete(t),null!==v&&v.set(t,o)),i.apply(this,arguments)},t.onCommitFiberRoot=function(e,t,o,n){var i=y.get(e);if(void 0!==i){m.set(t,i);var a=(i=t.current).alternate;null!==a?(a=null!=a.memoizedState&&null!=a.memoizedState.element&&_.has(t),i=null!=i.memoizedState&&null!=i.memoizedState.element,!a&&i?(_.add(t),R.delete(t)):a&&i||(a&&!i?(_.delete(t),n?R.add(t):m.delete(t)):a||i||n&&R.add(t))):_.add(t)}return r.apply(this,arguments)}}},t.isLikelyComponentType=function(e){switch(typeof e){case"function":if(null!=e.prototype){if(e.prototype.isReactComponent)return!0;var t=Object.getOwnPropertyNames(e.prototype);if(1<t.length||"constructor"!==t[0]||e.prototype.__proto__!==Object.prototype)return!1}return"string"==typeof(e=e.name||e.displayName)&&/^[A-Z]/.test(e);case"object":if(null!=e)switch(r(e,"$$typeof")){case f:case c:return!0}return!1;default:return!1}},t.performReactRefresh=function(){if(0===h.length||g)return null;g=!0;try{var t=new Set,r=new Set,i=h;h=[],i.forEach(function(o){var n=o[0];o=o[1];var i=n.current;d.set(i,n),d.set(o,n),n.current=o,i.prototype&&i.prototype.isReactComponent||o.prototype&&o.prototype.isReactComponent?o=!1:(i=p.get(i),o=p.get(o),o=void 0===i&&void 0===o||void 0!==i&&void 0!==o&&e(i)===e(o)&&!o.forceReset),o?r.add(n):t.add(n)});var a={updatedFamilies:r,staleFamilies:t};y.forEach(function(e){e.setRefreshHandler(o)});var f=!1,c=null,u=n(R),s=n(_),l=(w=m,b=new Map,w.forEach(function(e,t){b.set(t,e)}),b);if(u.forEach(function(e){var t=l.get(e);if(void 0===t)throw Error("Could not find helpers for a root. This is a bug in React Refresh.");if(R.has(e),null!==v&&v.has(e)){var o=v.get(e);try{t.scheduleRoot(e,o)}catch(e){f||(f=!0,c=e)}}}),s.forEach(function(e){var t=l.get(e);if(void 0===t)throw Error("Could not find helpers for a root. This is a bug in React Refresh.");_.has(e);try{t.scheduleRefresh(e,a)}catch(e){f||(f=!0,c=e)}}),f)throw c;return a}finally{g=!1}var w,b},t.register=function e(t,o){if(!(null===t||"function"!=typeof t&&"object"!=typeof t||l.has(t))){var n=s.get(o);if(void 0===n?(n={current:t},s.set(o,n)):h.push([n,t]),l.set(t,n),"object"==typeof t&&null!==t)switch(r(t,"$$typeof")){case f:e(t.render,o+"$render");break;case c:e(t.type,o+"$type")}}},t.setSignature=i}()}};
2
+ export const __webpack_esm_id__=337;export const __webpack_esm_ids__=[337];export const __webpack_esm_modules__={567(e,t){!function(){function e(t){if(null!==t.fullKey)return t.fullKey;var o=t.ownKey;try{var n=t.getCustomHooks()}catch(e){return t.forceReset=!0,t.fullKey=o}for(var r=0;r<n.length;r++){var i=n[r];if("function"!=typeof i)return t.forceReset=!0,t.fullKey=o;if(void 0!==(i=p.get(i))){var a=e(i);i.forceReset&&(t.forceReset=!0),o+="\n---\n"+a}}return t.fullKey=o}function o(e){return d.get(e)}function n(e){var t=new Set;return e.forEach(function(e){t.add(e)}),t}function r(e,t){try{return e[t]}catch(e){}}function i(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=3<arguments.length?arguments[3]:void 0;if(p.has(e)||p.set(e,{forceReset:o,ownKey:t,fullKey:null,getCustomHooks:n||function(){return[]}}),"object"==typeof e&&null!==e)switch(r(e,"$$typeof")){case f:i(e.render,t,o,n);break;case c:i(e.type,t,o,n)}}function a(t){void 0!==(t=p.get(t))&&e(t)}var f=Symbol.for("react.forward_ref"),c=Symbol.for("react.memo"),u="function"==typeof WeakMap?WeakMap:Map,s=new Map,l=new u,p=new u,d=new u,h=[],y=new Map,m=new Map,_=new Set,R=new Set,v="function"==typeof WeakMap?new WeakMap:null,g=!1;t._getMountedRootCount=function(){return _.size},t.collectCustomHooksForSignature=a,t.createSignatureFunctionForTransform=function(){var e,t,o=!1;return function(n,r,f,c){if("string"==typeof r)return e||(e=n,t="function"==typeof c),null==n||"function"!=typeof n&&"object"!=typeof n||i(n,r,f,c),n;!o&&t&&(o=!0,a(e))}},t.getFamilyByID=function(e){return s.get(e)},t.getFamilyByType=function(e){return l.get(e)},t.hasUnrecoverableErrors=function(){return!1},t.injectIntoGlobalHook=function(e){var t=e.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(void 0===t){var o=0;e.__REACT_DEVTOOLS_GLOBAL_HOOK__=t={renderers:new Map,supportsFiber:!0,inject:function(){return o++},onScheduleFiberRoot:function(){},onCommitFiberRoot:function(){},onCommitFiberUnmount:function(){}}}if(t.isDisabled)console.warn("Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled.");else{var n=t.inject;t.inject=function(e){var t=n.apply(this,arguments);return"function"==typeof e.scheduleRefresh&&"function"==typeof e.setRefreshHandler&&y.set(t,e),t},t.renderers.forEach(function(e,t){"function"==typeof e.scheduleRefresh&&"function"==typeof e.setRefreshHandler&&y.set(t,e)});var r=t.onCommitFiberRoot,i=t.onScheduleFiberRoot||function(){};t.onScheduleFiberRoot=function(e,t,o){return g||(R.delete(t),null!==v&&v.set(t,o)),i.apply(this,arguments)},t.onCommitFiberRoot=function(e,t,o,n){var i=y.get(e);if(void 0!==i){m.set(t,i);var a=(i=t.current).alternate;null!==a?(a=null!=a.memoizedState&&null!=a.memoizedState.element&&_.has(t),i=null!=i.memoizedState&&null!=i.memoizedState.element,!a&&i?(_.add(t),R.delete(t)):a&&i||(a&&!i?(_.delete(t),n?R.add(t):m.delete(t)):a||i||n&&R.add(t))):_.add(t)}return r.apply(this,arguments)}}},t.isLikelyComponentType=function(e){switch(typeof e){case"function":if(null!=e.prototype){if(e.prototype.isReactComponent)return!0;var t=Object.getOwnPropertyNames(e.prototype);if(1<t.length||"constructor"!==t[0]||e.prototype.__proto__!==Object.prototype)return!1}return"string"==typeof(e=e.name||e.displayName)&&/^[A-Z]/.test(e);case"object":if(null!=e)switch(r(e,"$$typeof")){case f:case c:return!0}return!1;default:return!1}},t.performReactRefresh=function(){if(0===h.length||g)return null;g=!0;try{var t=new Set,r=new Set,i=h;h=[],i.forEach(function(o){var n=o[0];o=o[1];var i=n.current;d.set(i,n),d.set(o,n),n.current=o,i.prototype&&i.prototype.isReactComponent||o.prototype&&o.prototype.isReactComponent?o=!1:(i=p.get(i),o=p.get(o),o=void 0===i&&void 0===o||void 0!==i&&void 0!==o&&e(i)===e(o)&&!o.forceReset),o?r.add(n):t.add(n)});var a={updatedFamilies:r,staleFamilies:t};y.forEach(function(e){e.setRefreshHandler(o)});var f=!1,c=null,u=n(R),s=n(_),l=(w=m,b=new Map,w.forEach(function(e,t){b.set(t,e)}),b);if(u.forEach(function(e){var t=l.get(e);if(void 0===t)throw Error("Could not find helpers for a root. This is a bug in React Refresh.");if(R.has(e),null!==v&&v.has(e)){var o=v.get(e);try{t.scheduleRoot(e,o)}catch(e){f||(f=!0,c=e)}}}),s.forEach(function(e){var t=l.get(e);if(void 0===t)throw Error("Could not find helpers for a root. This is a bug in React Refresh.");_.has(e);try{t.scheduleRefresh(e,a)}catch(e){f||(f=!0,c=e)}}),f)throw c;return a}finally{g=!1}var w,b},t.register=function e(t,o){if(!(null===t||"function"!=typeof t&&"object"!=typeof t||l.has(t))){var n=s.get(o);if(void 0===n?(n={current:t},s.set(o,n)):h.push([n,t]),l.set(t,n),"object"==typeof t&&null!==t)switch(r(t,"$$typeof")){case f:e(t.render,o+"$render");break;case c:e(t.type,o+"$type")}}},t.setSignature=i}()},337(e,t,o){o.d(t,{registerReactRefresh:()=>r});var n=o(567);const r=()=>{n.injectIntoGlobalHook(window),window.$RefreshReg$=(e,t)=>{n.register(e,t)},window.$RefreshSig$=()=>n.createSignatureFunctionForTransform(),window.$RefreshRuntime$=n,console.log("[React Refresh] Runtime initialized")}}};
3
3
  //# sourceMappingURL=337.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"337.chunk.js","mappings":";6KAgBO,MAAMA,EAAuB,KAIlCC,EAAAA,qBAAoCC,QAiBpCA,OAAOC,aAAe,CAACC,EAAeC,KAIpCJ,EAAAA,SAAwBG,EAAMC,IA0BhCH,OAAOI,aAAe,IACbL,EAAAA,sCAWTC,OAAOK,iBAAmBN,EAE1BO,QAAQC,IAAI,uC,YCtEZ,WACE,SAASC,EAAeC,GACtB,GAAI,OAASA,EAAUC,QAAS,OAAOD,EAAUC,QACjD,IAAIA,EAAUD,EAAUE,OACxB,IACE,IAAIC,EAAQH,EAAUI,gBACxB,CAAE,MAAOC,GACP,OAAQL,EAAUM,YAAa,EAAMN,EAAUC,QAAUA,CAC3D,CACA,IAAK,IAAIM,EAAI,EAAGA,EAAIJ,EAAMK,O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C,OAAQ6B,EAAY7B,EAAM,aACxB,KAAKoC,EACHmF,EAASvH,EAAKqC,OAAQpC,EAAK,WAC3B,MACF,KAAKqC,EACHiF,EAASvH,EAAKA,KAAMC,EAAK,SAEjC,CACF,EAkQAqD,EAAQtB,aAAeA,CACxB,CArUD,E","sources":["webpack://@ms-cloudpack/overlay/./src/registerReactRefresh.ts","webpack://@ms-cloudpack/overlay/../../node_modules/.store/react-refresh-patch-0b32d1125e/package/cjs/react-refresh-runtime.development.js"],"sourcesContent":["import RefreshRuntime from 'react-refresh';\n\n/**\n * Initializes the React Refresh runtime for hot module replacement (HMR).\n *\n * React Refresh enables fast refresh of React components without losing their state.\n * This function sets up the necessary global hooks and functions that the bundler-transformed\n * code will use to register components and trigger updates.\n *\n * This should be called once during application initialization, before any React components are loaded.\n *\n * @example\n * // In your app entry point:\n * import { registerReactRefresh } from '@ms-cloudpack/overlay';\n * registerReactRefresh();\n */\nexport const registerReactRefresh = (): void => {\n // Initialize React Refresh by injecting into React's internals\n // This hooks into React's reconciler to enable hot reloading capabilities\n // It modifies the global React DevTools hook to track component updates\n RefreshRuntime.injectIntoGlobalHook(window);\n\n // Set up the component registration function\n // This function is called by bundler-injected code for every React component/hook\n //\n // Example of what the bundler transforms:\n // Original code:\n // export const MyComponent = () => <div>Hello</div>\n //\n // Transformed code:\n // export const MyComponent = () => <div>Hello</div>\n // $RefreshReg$(MyComponent, 'MyComponent');\n //\n // The registration allows React Refresh to:\n // - Track which components exist in the module\n // - Match old and new versions of components during updates\n // - Determine if a full reload is needed (e.g., if hooks changed)\n window.$RefreshReg$ = (type: unknown, id: string) => {\n // TODO: Make this fully qualified with id including package name to avoid collisions\n // Currently, if two packages export a component with the same name, they could collide\n // Example collision: '@pkg-a/MyComponent' and '@pkg-b/MyComponent' both register as 'MyComponent'\n RefreshRuntime.register(type, id);\n };\n\n // Set up the signature function for tracking hook changes\n // This is used to detect when hooks in a component have changed\n //\n // Example of what the bundler transforms:\n // Original code:\n // const MyComponent = () => {\n // const [count, setCount] = useState(0);\n // return <div>{count}</div>\n // }\n //\n // Transformed code:\n // var _s = $RefreshSig$();\n // const MyComponent = () => {\n // _s(); // Signature call to track hooks\n // const [count, setCount] = useState(0);\n // return <div>{count}</div>\n // }\n // _s(MyComponent, \"useState{count}\");\n //\n // If hook signatures change (e.g., adding/removing useState), React Refresh will:\n // - Detect the change via the signature mismatch\n // - Force a full remount of the component (state will be lost)\n // - Warn the developer about the limitation\n window.$RefreshSig$ = () => {\n return RefreshRuntime.createSignatureFunctionForTransform();\n };\n\n // Store the runtime globally for manual refresh triggering\n // This is used by handlePackageUpdate.ts to call performReactRefresh()\n // after new modules are imported\n //\n // The runtime provides:\n // - performReactRefresh(): Triggers the actual component updates\n // - register(): Called by $RefreshReg$ to track components\n // - createSignatureFunctionForTransform(): Called by $RefreshSig$ to track hooks\n window.$RefreshRuntime$ = RefreshRuntime;\n\n console.log('[React Refresh] Runtime initialized');\n};\n","/**\n * @license React\n * react-refresh-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n (function () {\n function computeFullKey(signature) {\n if (null !== signature.fullKey) return signature.fullKey;\n var fullKey = signature.ownKey;\n try {\n var hooks = signature.getCustomHooks();\n } catch (err) {\n return (signature.forceReset = !0), (signature.fullKey = fullKey);\n }\n for (var i = 0; i < hooks.length; i++) {\n var hook = hooks[i];\n if (\"function\" !== typeof hook)\n return (signature.forceReset = !0), (signature.fullKey = fullKey);\n hook = allSignaturesByType.get(hook);\n if (void 0 !== hook) {\n var nestedHookKey = computeFullKey(hook);\n hook.forceReset && (signature.forceReset = !0);\n fullKey += \"\\n---\\n\" + nestedHookKey;\n }\n }\n return (signature.fullKey = fullKey);\n }\n function resolveFamily(type) {\n return updatedFamiliesByType.get(type);\n }\n function cloneMap(map) {\n var clone = new Map();\n map.forEach(function (value, key) {\n clone.set(key, value);\n });\n return clone;\n }\n function cloneSet(set) {\n var clone = new Set();\n set.forEach(function (value) {\n clone.add(value);\n });\n return clone;\n }\n function getProperty(object, property) {\n try {\n return object[property];\n } catch (err) {}\n }\n function register(type, id) {\n if (\n !(\n null === type ||\n (\"function\" !== typeof type && \"object\" !== typeof type) ||\n allFamiliesByType.has(type)\n )\n ) {\n var family = allFamiliesByID.get(id);\n void 0 === family\n ? ((family = { current: type }), allFamiliesByID.set(id, family))\n : pendingUpdates.push([family, type]);\n allFamiliesByType.set(type, family);\n if (\"object\" === typeof type && null !== type)\n switch (getProperty(type, \"$$typeof\")) {\n case REACT_FORWARD_REF_TYPE:\n register(type.render, id + \"$render\");\n break;\n case REACT_MEMO_TYPE:\n register(type.type, id + \"$type\");\n }\n }\n }\n function setSignature(type, key) {\n var forceReset =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !1,\n getCustomHooks = 3 < arguments.length ? arguments[3] : void 0;\n allSignaturesByType.has(type) ||\n allSignaturesByType.set(type, {\n forceReset: forceReset,\n ownKey: key,\n fullKey: null,\n getCustomHooks:\n getCustomHooks ||\n function () {\n return [];\n }\n });\n if (\"object\" === typeof type && null !== type)\n switch (getProperty(type, \"$$typeof\")) {\n case REACT_FORWARD_REF_TYPE:\n setSignature(type.render, key, forceReset, getCustomHooks);\n break;\n case REACT_MEMO_TYPE:\n setSignature(type.type, key, forceReset, getCustomHooks);\n }\n }\n function collectCustomHooksForSignature(type) {\n type = allSignaturesByType.get(type);\n void 0 !== type && computeFullKey(type);\n }\n var REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n PossiblyWeakMap = \"function\" === typeof WeakMap ? WeakMap : Map,\n allFamiliesByID = new Map(),\n allFamiliesByType = new PossiblyWeakMap(),\n allSignaturesByType = new PossiblyWeakMap(),\n updatedFamiliesByType = new PossiblyWeakMap(),\n pendingUpdates = [],\n helpersByRendererID = new Map(),\n helpersByRoot = new Map(),\n mountedRoots = new Set(),\n failedRoots = new Set(),\n rootElements = \"function\" === typeof WeakMap ? new WeakMap() : null,\n isPerformingRefresh = !1;\n exports._getMountedRootCount = function () {\n return mountedRoots.size;\n };\n exports.collectCustomHooksForSignature = collectCustomHooksForSignature;\n exports.createSignatureFunctionForTransform = function () {\n var savedType,\n hasCustomHooks,\n didCollectHooks = !1;\n return function (type, key, forceReset, getCustomHooks) {\n if (\"string\" === typeof key)\n return (\n savedType ||\n ((savedType = type),\n (hasCustomHooks = \"function\" === typeof getCustomHooks)),\n null == type ||\n (\"function\" !== typeof type && \"object\" !== typeof type) ||\n setSignature(type, key, forceReset, getCustomHooks),\n type\n );\n !didCollectHooks &&\n hasCustomHooks &&\n ((didCollectHooks = !0), collectCustomHooksForSignature(savedType));\n };\n };\n exports.getFamilyByID = function (id) {\n return allFamiliesByID.get(id);\n };\n exports.getFamilyByType = function (type) {\n return allFamiliesByType.get(type);\n };\n exports.hasUnrecoverableErrors = function () {\n return !1;\n };\n exports.injectIntoGlobalHook = function (globalObject) {\n var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (void 0 === hook) {\n var nextID = 0;\n globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {\n renderers: new Map(),\n supportsFiber: !0,\n inject: function () {\n return nextID++;\n },\n onScheduleFiberRoot: function () {},\n onCommitFiberRoot: function () {},\n onCommitFiberUnmount: function () {}\n };\n }\n if (hook.isDisabled)\n console.warn(\n \"Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled.\"\n );\n else {\n var oldInject = hook.inject;\n hook.inject = function (injected) {\n var id = oldInject.apply(this, arguments);\n \"function\" === typeof injected.scheduleRefresh &&\n \"function\" === typeof injected.setRefreshHandler &&\n helpersByRendererID.set(id, injected);\n return id;\n };\n hook.renderers.forEach(function (injected, id) {\n \"function\" === typeof injected.scheduleRefresh &&\n \"function\" === typeof injected.setRefreshHandler &&\n helpersByRendererID.set(id, injected);\n });\n var oldOnCommitFiberRoot = hook.onCommitFiberRoot,\n oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};\n hook.onScheduleFiberRoot = function (id, root, children) {\n isPerformingRefresh ||\n (failedRoots.delete(root),\n null !== rootElements && rootElements.set(root, children));\n return oldOnScheduleFiberRoot.apply(this, arguments);\n };\n hook.onCommitFiberRoot = function (\n id,\n root,\n maybePriorityLevel,\n didError\n ) {\n var helpers = helpersByRendererID.get(id);\n if (void 0 !== helpers) {\n helpersByRoot.set(root, helpers);\n helpers = root.current;\n var alternate = helpers.alternate;\n null !== alternate\n ? ((alternate =\n null != alternate.memoizedState &&\n null != alternate.memoizedState.element &&\n mountedRoots.has(root)),\n (helpers =\n null != helpers.memoizedState &&\n null != helpers.memoizedState.element),\n !alternate && helpers\n ? (mountedRoots.add(root), failedRoots.delete(root))\n : (alternate && helpers) ||\n (alternate && !helpers\n ? (mountedRoots.delete(root),\n didError\n ? failedRoots.add(root)\n : helpersByRoot.delete(root))\n : alternate ||\n helpers ||\n (didError && failedRoots.add(root))))\n : mountedRoots.add(root);\n }\n return oldOnCommitFiberRoot.apply(this, arguments);\n };\n }\n };\n exports.isLikelyComponentType = function (type) {\n switch (typeof type) {\n case \"function\":\n if (null != type.prototype) {\n if (type.prototype.isReactComponent) return !0;\n var ownNames = Object.getOwnPropertyNames(type.prototype);\n if (\n 1 < ownNames.length ||\n \"constructor\" !== ownNames[0] ||\n type.prototype.__proto__ !== Object.prototype\n )\n return !1;\n }\n type = type.name || type.displayName;\n return \"string\" === typeof type && /^[A-Z]/.test(type);\n case \"object\":\n if (null != type)\n switch (getProperty(type, \"$$typeof\")) {\n case REACT_FORWARD_REF_TYPE:\n case REACT_MEMO_TYPE:\n return !0;\n }\n return !1;\n default:\n return !1;\n }\n };\n exports.performReactRefresh = function () {\n if (0 === pendingUpdates.length || isPerformingRefresh) return null;\n isPerformingRefresh = !0;\n try {\n var staleFamilies = new Set(),\n updatedFamilies = new Set(),\n updates = pendingUpdates;\n pendingUpdates = [];\n updates.forEach(function (_ref) {\n var family = _ref[0];\n _ref = _ref[1];\n var prevType = family.current;\n updatedFamiliesByType.set(prevType, family);\n updatedFamiliesByType.set(_ref, family);\n family.current = _ref;\n (prevType.prototype && prevType.prototype.isReactComponent) ||\n (_ref.prototype && _ref.prototype.isReactComponent)\n ? (_ref = !1)\n : ((prevType = allSignaturesByType.get(prevType)),\n (_ref = allSignaturesByType.get(_ref)),\n (_ref =\n (void 0 === prevType && void 0 === _ref) ||\n (void 0 !== prevType &&\n void 0 !== _ref &&\n computeFullKey(prevType) === computeFullKey(_ref) &&\n !_ref.forceReset)\n ? !0\n : !1));\n _ref ? updatedFamilies.add(family) : staleFamilies.add(family);\n });\n var update = {\n updatedFamilies: updatedFamilies,\n staleFamilies: staleFamilies\n };\n helpersByRendererID.forEach(function (helpers) {\n helpers.setRefreshHandler(resolveFamily);\n });\n var didError = !1,\n firstError = null,\n failedRootsSnapshot = cloneSet(failedRoots),\n mountedRootsSnapshot = cloneSet(mountedRoots),\n helpersByRootSnapshot = cloneMap(helpersByRoot);\n failedRootsSnapshot.forEach(function (root) {\n var helpers = helpersByRootSnapshot.get(root);\n if (void 0 === helpers)\n throw Error(\n \"Could not find helpers for a root. This is a bug in React Refresh.\"\n );\n failedRoots.has(root);\n if (null !== rootElements && rootElements.has(root)) {\n var element = rootElements.get(root);\n try {\n helpers.scheduleRoot(root, element);\n } catch (err) {\n didError || ((didError = !0), (firstError = err));\n }\n }\n });\n mountedRootsSnapshot.forEach(function (root) {\n var helpers = helpersByRootSnapshot.get(root);\n if (void 0 === helpers)\n throw Error(\n \"Could not find helpers for a root. This is a bug in React Refresh.\"\n );\n mountedRoots.has(root);\n try {\n helpers.scheduleRefresh(root, update);\n } catch (err) {\n didError || ((didError = !0), (firstError = err));\n }\n });\n if (didError) throw firstError;\n return update;\n } finally {\n isPerformingRefresh = !1;\n }\n };\n exports.register = register;\n exports.setSignature = setSignature;\n })();\n"],"names":["registerReactRefresh","RefreshRuntime","window","$RefreshReg$","type","id","$RefreshSig$","$RefreshRuntime$","console","log","computeFullKey","signature","fullKey","ownKey","hooks","getCustomHooks","err","forceReset","i","length","hook","allSignaturesByType","get","nestedHookKey","resolveFamily","updatedFamiliesByType","cloneSet","set","clone","Set","forEach","value","add","getProperty","object","property","setSignature","key","arguments","has","REACT_FORWARD_REF_TYPE","render","REACT_MEMO_TYPE","collectCustomHooksForSignature","Symbol","for","PossiblyWeakMap","WeakMap","Map","allFamiliesByID","allFamiliesByType","pendingUpdates","helpersByRendererID","helpersByRoot","mountedRoots","failedRoots","rootElements","isPerformingRefresh","exports","_getMountedRootCount","size","createSignatureFunctionForTransform","savedType","hasCustomHooks","didCollectHooks","getFamilyByID","getFamilyByType","hasUnrecoverableErrors","injectIntoGlobalHook","globalObject","__REACT_DEVTOOLS_GLOBAL_HOOK__","nextID","renderers","supportsFiber","inject","onScheduleFiberRoot","onCommitFiberRoot","onCommitFiberUnmount","isDisabled","warn","oldInject","injected","apply","this","scheduleRefresh","setRefreshHandler","oldOnCommitFiberRoot","oldOnScheduleFiberRoot","root","children","delete","maybePriorityLevel","didError","helpers","alternate","current","memoizedState","element","isLikelyComponentType","prototype","isReactComponent","ownNames","Object","getOwnPropertyNames","__proto__","name","displayName","test","performReactRefresh","staleFamilies","updatedFamilies","updates","_ref","family","prevType","update","firstError","failedRootsSnapshot","mountedRootsSnapshot","helpersByRootSnapshot","map","Error","scheduleRoot","register","push"],"ignoreList":[],"sourceRoot":""}
1
+ {"version":3,"file":"337.chunk.js","mappings":";2HAWE,WACE,SAASA,EAAeC,GACtB,GAAI,OAASA,EAAUC,QAAS,OAAOD,EAAUC,QACjD,IAAIA,EAAUD,EAAUE,OACxB,IACE,IAAIC,EAAQH,EAAUI,gBACxB,CAAE,MAAOC,GACP,OAAQL,EAAUM,YAAa,EAAMN,EAAUC,QAAUA,CAC3D,CACA,IAAK,IAAIM,EAAI,EAAGA,EAAIJ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T,EAAM,aACxB,KAAKgB,EACHqF,EAASrG,EAAKiB,OAAQyB,EAAK,WAC3B,MACF,KAAKxB,EACHmF,EAASrG,EAAKA,KAAM0C,EAAK,SAEjC,CACF,EAkQAR,EAAQtB,aAAeA,CACxB,CArUD,E,8DCKK,MAAM2F,EAAuB,KAIlCC,EAAAA,qBAAoCC,QAiBpCA,OAAOC,aAAe,CAAC1G,EAAe0C,KAIpC8D,EAAAA,SAAwBxG,EAAM0C,IA0BhC+D,OAAOE,aAAe,IACbH,EAAAA,sCAWTC,OAAOG,iBAAmBJ,EAE1BhD,QAAQqD,IAAI,uC","sources":["webpack://@ms-cloudpack/overlay/../../node_modules/.store/react-refresh-patch-0b32d1125e/package/cjs/react-refresh-runtime.development.js","webpack://@ms-cloudpack/overlay/./src/registerReactRefresh.ts"],"sourcesContent":["/**\n * @license React\n * react-refresh-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n (function () {\n function computeFullKey(signature) {\n if (null !== signature.fullKey) return signature.fullKey;\n var fullKey = signature.ownKey;\n try {\n var hooks = signature.getCustomHooks();\n } catch (err) {\n return (signature.forceReset = !0), (signature.fullKey = fullKey);\n }\n for (var i = 0; i < hooks.length; i++) {\n var hook = hooks[i];\n if (\"function\" !== typeof hook)\n return (signature.forceReset = !0), (signature.fullKey = fullKey);\n hook = allSignaturesByType.get(hook);\n if (void 0 !== hook) {\n var nestedHookKey = computeFullKey(hook);\n hook.forceReset && (signature.forceReset = !0);\n fullKey += \"\\n---\\n\" + nestedHookKey;\n }\n }\n return (signature.fullKey = fullKey);\n }\n function resolveFamily(type) {\n return updatedFamiliesByType.get(type);\n }\n function cloneMap(map) {\n var clone = new Map();\n map.forEach(function (value, key) {\n clone.set(key, value);\n });\n return clone;\n }\n function cloneSet(set) {\n var clone = new Set();\n set.forEach(function (value) {\n clone.add(value);\n });\n return clone;\n }\n function getProperty(object, property) {\n try {\n return object[property];\n } catch (err) {}\n }\n function register(type, id) {\n if (\n !(\n null === type ||\n (\"function\" !== typeof type && \"object\" !== typeof type) ||\n allFamiliesByType.has(type)\n )\n ) {\n var family = allFamiliesByID.get(id);\n void 0 === family\n ? ((family = { current: type }), allFamiliesByID.set(id, family))\n : pendingUpdates.push([family, type]);\n allFamiliesByType.set(type, family);\n if (\"object\" === typeof type && null !== type)\n switch (getProperty(type, \"$$typeof\")) {\n case REACT_FORWARD_REF_TYPE:\n register(type.render, id + \"$render\");\n break;\n case REACT_MEMO_TYPE:\n register(type.type, id + \"$type\");\n }\n }\n }\n function setSignature(type, key) {\n var forceReset =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !1,\n getCustomHooks = 3 < arguments.length ? arguments[3] : void 0;\n allSignaturesByType.has(type) ||\n allSignaturesByType.set(type, {\n forceReset: forceReset,\n ownKey: key,\n fullKey: null,\n getCustomHooks:\n getCustomHooks ||\n function () {\n return [];\n }\n });\n if (\"object\" === typeof type && null !== type)\n switch (getProperty(type, \"$$typeof\")) {\n case REACT_FORWARD_REF_TYPE:\n setSignature(type.render, key, forceReset, getCustomHooks);\n break;\n case REACT_MEMO_TYPE:\n setSignature(type.type, key, forceReset, getCustomHooks);\n }\n }\n function collectCustomHooksForSignature(type) {\n type = allSignaturesByType.get(type);\n void 0 !== type && computeFullKey(type);\n }\n var REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n PossiblyWeakMap = \"function\" === typeof WeakMap ? WeakMap : Map,\n allFamiliesByID = new Map(),\n allFamiliesByType = new PossiblyWeakMap(),\n allSignaturesByType = new PossiblyWeakMap(),\n updatedFamiliesByType = new PossiblyWeakMap(),\n pendingUpdates = [],\n helpersByRendererID = new Map(),\n helpersByRoot = new Map(),\n mountedRoots = new Set(),\n failedRoots = new Set(),\n rootElements = \"function\" === typeof WeakMap ? new WeakMap() : null,\n isPerformingRefresh = !1;\n exports._getMountedRootCount = function () {\n return mountedRoots.size;\n };\n exports.collectCustomHooksForSignature = collectCustomHooksForSignature;\n exports.createSignatureFunctionForTransform = function () {\n var savedType,\n hasCustomHooks,\n didCollectHooks = !1;\n return function (type, key, forceReset, getCustomHooks) {\n if (\"string\" === typeof key)\n return (\n savedType ||\n ((savedType = type),\n (hasCustomHooks = \"function\" === typeof getCustomHooks)),\n null == type ||\n (\"function\" !== typeof type && \"object\" !== typeof type) ||\n setSignature(type, key, forceReset, getCustomHooks),\n type\n );\n !didCollectHooks &&\n hasCustomHooks &&\n ((didCollectHooks = !0), collectCustomHooksForSignature(savedType));\n };\n };\n exports.getFamilyByID = function (id) {\n return allFamiliesByID.get(id);\n };\n exports.getFamilyByType = function (type) {\n return allFamiliesByType.get(type);\n };\n exports.hasUnrecoverableErrors = function () {\n return !1;\n };\n exports.injectIntoGlobalHook = function (globalObject) {\n var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (void 0 === hook) {\n var nextID = 0;\n globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {\n renderers: new Map(),\n supportsFiber: !0,\n inject: function () {\n return nextID++;\n },\n onScheduleFiberRoot: function () {},\n onCommitFiberRoot: function () {},\n onCommitFiberUnmount: function () {}\n };\n }\n if (hook.isDisabled)\n console.warn(\n \"Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled.\"\n );\n else {\n var oldInject = hook.inject;\n hook.inject = function (injected) {\n var id = oldInject.apply(this, arguments);\n \"function\" === typeof injected.scheduleRefresh &&\n \"function\" === typeof injected.setRefreshHandler &&\n helpersByRendererID.set(id, injected);\n return id;\n };\n hook.renderers.forEach(function (injected, id) {\n \"function\" === typeof injected.scheduleRefresh &&\n \"function\" === typeof injected.setRefreshHandler &&\n helpersByRendererID.set(id, injected);\n });\n var oldOnCommitFiberRoot = hook.onCommitFiberRoot,\n oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};\n hook.onScheduleFiberRoot = function (id, root, children) {\n isPerformingRefresh ||\n (failedRoots.delete(root),\n null !== rootElements && rootElements.set(root, children));\n return oldOnScheduleFiberRoot.apply(this, arguments);\n };\n hook.onCommitFiberRoot = function (\n id,\n root,\n maybePriorityLevel,\n didError\n ) {\n var helpers = helpersByRendererID.get(id);\n if (void 0 !== helpers) {\n helpersByRoot.set(root, helpers);\n helpers = root.current;\n var alternate = helpers.alternate;\n null !== alternate\n ? ((alternate =\n null != alternate.memoizedState &&\n null != alternate.memoizedState.element &&\n mountedRoots.has(root)),\n (helpers =\n null != helpers.memoizedState &&\n null != helpers.memoizedState.element),\n !alternate && helpers\n ? (mountedRoots.add(root), failedRoots.delete(root))\n : (alternate && helpers) ||\n (alternate && !helpers\n ? (mountedRoots.delete(root),\n didError\n ? failedRoots.add(root)\n : helpersByRoot.delete(root))\n : alternate ||\n helpers ||\n (didError && failedRoots.add(root))))\n : mountedRoots.add(root);\n }\n return oldOnCommitFiberRoot.apply(this, arguments);\n };\n }\n };\n exports.isLikelyComponentType = function (type) {\n switch (typeof type) {\n case \"function\":\n if (null != type.prototype) {\n if (type.prototype.isReactComponent) return !0;\n var ownNames = Object.getOwnPropertyNames(type.prototype);\n if (\n 1 < ownNames.length ||\n \"constructor\" !== ownNames[0] ||\n type.prototype.__proto__ !== Object.prototype\n )\n return !1;\n }\n type = type.name || type.displayName;\n return \"string\" === typeof type && /^[A-Z]/.test(type);\n case \"object\":\n if (null != type)\n switch (getProperty(type, \"$$typeof\")) {\n case REACT_FORWARD_REF_TYPE:\n case REACT_MEMO_TYPE:\n return !0;\n }\n return !1;\n default:\n return !1;\n }\n };\n exports.performReactRefresh = function () {\n if (0 === pendingUpdates.length || isPerformingRefresh) return null;\n isPerformingRefresh = !0;\n try {\n var staleFamilies = new Set(),\n updatedFamilies = new Set(),\n updates = pendingUpdates;\n pendingUpdates = [];\n updates.forEach(function (_ref) {\n var family = _ref[0];\n _ref = _ref[1];\n var prevType = family.current;\n updatedFamiliesByType.set(prevType, family);\n updatedFamiliesByType.set(_ref, family);\n family.current = _ref;\n (prevType.prototype && prevType.prototype.isReactComponent) ||\n (_ref.prototype && _ref.prototype.isReactComponent)\n ? (_ref = !1)\n : ((prevType = allSignaturesByType.get(prevType)),\n (_ref = allSignaturesByType.get(_ref)),\n (_ref =\n (void 0 === prevType && void 0 === _ref) ||\n (void 0 !== prevType &&\n void 0 !== _ref &&\n computeFullKey(prevType) === computeFullKey(_ref) &&\n !_ref.forceReset)\n ? !0\n : !1));\n _ref ? updatedFamilies.add(family) : staleFamilies.add(family);\n });\n var update = {\n updatedFamilies: updatedFamilies,\n staleFamilies: staleFamilies\n };\n helpersByRendererID.forEach(function (helpers) {\n helpers.setRefreshHandler(resolveFamily);\n });\n var didError = !1,\n firstError = null,\n failedRootsSnapshot = cloneSet(failedRoots),\n mountedRootsSnapshot = cloneSet(mountedRoots),\n helpersByRootSnapshot = cloneMap(helpersByRoot);\n failedRootsSnapshot.forEach(function (root) {\n var helpers = helpersByRootSnapshot.get(root);\n if (void 0 === helpers)\n throw Error(\n \"Could not find helpers for a root. This is a bug in React Refresh.\"\n );\n failedRoots.has(root);\n if (null !== rootElements && rootElements.has(root)) {\n var element = rootElements.get(root);\n try {\n helpers.scheduleRoot(root, element);\n } catch (err) {\n didError || ((didError = !0), (firstError = err));\n }\n }\n });\n mountedRootsSnapshot.forEach(function (root) {\n var helpers = helpersByRootSnapshot.get(root);\n if (void 0 === helpers)\n throw Error(\n \"Could not find helpers for a root. This is a bug in React Refresh.\"\n );\n mountedRoots.has(root);\n try {\n helpers.scheduleRefresh(root, update);\n } catch (err) {\n didError || ((didError = !0), (firstError = err));\n }\n });\n if (didError) throw firstError;\n return update;\n } finally {\n isPerformingRefresh = !1;\n }\n };\n exports.register = register;\n exports.setSignature = setSignature;\n })();\n","import RefreshRuntime from 'react-refresh';\n\n/**\n * Initializes the React Refresh runtime for hot module replacement (HMR).\n *\n * React Refresh enables fast refresh of React components without losing their state.\n * This function sets up the necessary global hooks and functions that the bundler-transformed\n * code will use to register components and trigger updates.\n *\n * This should be called once during application initialization, before any React components are loaded.\n *\n * @example\n * // In your app entry point:\n * import { registerReactRefresh } from '@ms-cloudpack/overlay';\n * registerReactRefresh();\n */\nexport const registerReactRefresh = (): void => {\n // Initialize React Refresh by injecting into React's internals\n // This hooks into React's reconciler to enable hot reloading capabilities\n // It modifies the global React DevTools hook to track component updates\n RefreshRuntime.injectIntoGlobalHook(window);\n\n // Set up the component registration function\n // This function is called by bundler-injected code for every React component/hook\n //\n // Example of what the bundler transforms:\n // Original code:\n // export const MyComponent = () => <div>Hello</div>\n //\n // Transformed code:\n // export const MyComponent = () => <div>Hello</div>\n // $RefreshReg$(MyComponent, 'MyComponent');\n //\n // The registration allows React Refresh to:\n // - Track which components exist in the module\n // - Match old and new versions of components during updates\n // - Determine if a full reload is needed (e.g., if hooks changed)\n window.$RefreshReg$ = (type: unknown, id: string) => {\n // TODO: Make this fully qualified with id including package name to avoid collisions\n // Currently, if two packages export a component with the same name, they could collide\n // Example collision: '@pkg-a/MyComponent' and '@pkg-b/MyComponent' both register as 'MyComponent'\n RefreshRuntime.register(type, id);\n };\n\n // Set up the signature function for tracking hook changes\n // This is used to detect when hooks in a component have changed\n //\n // Example of what the bundler transforms:\n // Original code:\n // const MyComponent = () => {\n // const [count, setCount] = useState(0);\n // return <div>{count}</div>\n // }\n //\n // Transformed code:\n // var _s = $RefreshSig$();\n // const MyComponent = () => {\n // _s(); // Signature call to track hooks\n // const [count, setCount] = useState(0);\n // return <div>{count}</div>\n // }\n // _s(MyComponent, \"useState{count}\");\n //\n // If hook signatures change (e.g., adding/removing useState), React Refresh will:\n // - Detect the change via the signature mismatch\n // - Force a full remount of the component (state will be lost)\n // - Warn the developer about the limitation\n window.$RefreshSig$ = () => {\n return RefreshRuntime.createSignatureFunctionForTransform();\n };\n\n // Store the runtime globally for manual refresh triggering\n // This is used by handlePackageUpdate.ts to call performReactRefresh()\n // after new modules are imported\n //\n // The runtime provides:\n // - performReactRefresh(): Triggers the actual component updates\n // - register(): Called by $RefreshReg$ to track components\n // - createSignatureFunctionForTransform(): Called by $RefreshSig$ to track hooks\n window.$RefreshRuntime$ = RefreshRuntime;\n\n console.log('[React Refresh] Runtime initialized');\n};\n"],"names":["computeFullKey","signature","fullKey","ownKey","hooks","getCustomHooks","err","forceReset","i","length","hook","allSignaturesByType","get","nestedHookKey","resolveFamily","type","updatedFamiliesByType","cloneSet","set","clone","Set","forEach","value","add","getProperty","object","property","setSignature","key","arguments","has","REACT_FORWARD_REF_TYPE","render","REACT_MEMO_TYPE","collectCustomHooksForSignature","Symbol","for","PossiblyWeakMap","WeakMap","Map","allFamiliesByID","allFamiliesByType","pendingUpdates","helpersByRendererID","helpersByRoot","mountedRoots","failedRoots","rootElements","isPerformingRefresh","exports","_getMountedRootCount","size","createSignatureFunctionForTransform","savedType","hasCustomHooks","didCollectHooks","getFamilyByID","id","getFamilyByType","hasUnrecoverableErrors","injectIntoGlobalHook","globalObject","__REACT_DEVTOOLS_GLOBAL_HOOK__","nextID","renderers","supportsFiber","inject","onScheduleFiberRoot","onCommitFiberRoot","onCommitFiberUnmount","isDisabled","console","warn","oldInject","injected","apply","this","scheduleRefresh","setRefreshHandler","oldOnCommitFiberRoot","oldOnScheduleFiberRoot","root","children","delete","maybePriorityLevel","didError","helpers","alternate","current","memoizedState","element","isLikelyComponentType","prototype","isReactComponent","ownNames","Object","getOwnPropertyNames","__proto__","name","displayName","test","performReactRefresh","staleFamilies","updatedFamilies","updates","_ref","family","prevType","update","firstError","failedRootsSnapshot","mountedRootsSnapshot","helpersByRootSnapshot","map","Error","scheduleRoot","register","push","registerReactRefresh","RefreshRuntime","window","$RefreshReg$","$RefreshSig$","$RefreshRuntime$","log"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- export const __webpack_esm_id__=475;export const __webpack_esm_ids__=[475];export const __webpack_esm_modules__={475(e,r,t){t.d(r,{ErrorDialog:()=>p,default:()=>m}),t.r(r);var o=t(621),n=t(72),s=t(245),i=t(938),a=t(123);const d=e=>{const{packageName:r,importPath:t,issuerUrl:n,fixable:d,isValidPackage:c}=e,l=(0,i.useCloudpack)(),h=(0,o.jsxs)("code",{children:[r,"."===t?"":`/${t.replace(/^\.\//,"")}`]}),p=(0,o.jsx)("code",{children:r}),m=t.endsWith("/");return(0,o.jsx)(a.ResultsAccordion,{name:h,index:e.index,result:"error",headerCommands:d&&(0,o.jsx)(s.Button,{onClick:()=>{l.addPackageOverride.mutate({packageName:r,importPath:t,issuerUrl:n,initiatedBy:"user"})},children:"Add override"}),getContent:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.ResultsAccordionContent,{itemName:"Problem",itemValue:(0,o.jsxs)(o.Fragment,{children:[c?(0,o.jsxs)(o.Fragment,{children:[h," was imported, but ",(0,o.jsx)("code",{children:t})," is not listed in ",p,"'s exports map",d?"":" and does not appear to exist on disk","."]}):(0,o.jsxs)(o.Fragment,{children:["An unrecognized package ",p," was imported."]}),n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("br",{}),"The bad import request came from:"," ",(0,o.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:n})]})]})}),(0,o.jsx)(a.ResultsAccordionContent,{itemName:"Possible solutions",itemValue:d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{children:["Click ",(0,o.jsx)("strong",{children:"Add override"})," above to add an exports map entry for this path in your ","app's ",(0,o.jsx)("code",{children:"cloudpack.generated.json"}),"."]}),(0,o.jsxs)("p",{children:["To automatically make updates like this in the future, add the following to your ","app's ",(0,o.jsx)("code",{children:"cloudpack.config.json"}),":",(0,o.jsx)("br",{}),(0,o.jsx)("code",{children:'{ "features": { "autoUpdateEntries": true } }'})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("strong",{children:n?"Check the requesting URL above":"Search for this import in your repo"})," to determine whether the problematic import comes from your own code, or a dependency's code.",!n&&" (You can also try opening this page in Firefox and checking the console to see which package's bundle imported the bad path$; this isn't properly logged in Chromium due to a bug.)",(0,o.jsxs)("ul",{children:[(0,o.jsxs)("li",{children:[(0,o.jsx)("strong",{children:"If from your repo:"})," ",m?"Remove the trailing slash from the import path.":c?(0,o.jsxs)(o.Fragment,{children:["Import from the package root or a valid sub-path. (If you think the path is valid, verify that the correct version of ",p," is listed as a dependency.)"]}):"Make sure the package name is correct and listed as a dependency of the importing package."]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("strong",{children:"If from a dependency:"}),m?"Ask the owners to remove the trailing slash, or create a temporary patch in your repo.":(0,o.jsxs)("ul",{children:[(0,o.jsxs)("li",{children:["Verify that your local installation is up to date (run ",(0,o.jsx)("code",{children:"yarn"})," or your repo's package manager)."]}),(0,o.jsxs)("li",{children:["Verify whether ",p," is listed in the importing package's dependencies. If not, ask the owners to add it (or temporarily add the dependency in one of your own packages and run ",(0,o.jsx)("code",{children:"cloudpack init"}),")."]}),(0,o.jsxs)("li",{children:["If the dependency is listed, check whether any ",(0,o.jsx)("code",{children:"resolutions"})," exist for"," ",p," which might be forcing it to an incompatible version. If so, talk to your eng sys team about removing or scoping the resolution."]}),(0,o.jsxs)("li",{children:["If ",p," is in ",(0,o.jsx)("code",{children:"peerDependencies"})," of the importing package, the peer may be incorrectly satisfied in your dependency tree. Talk to your eng sys team for help."]})]})]})]})]})})]})})};var c=t(212),l=t(405),h=t(309);const p=({unsupported:e})=>{const r=(0,i.useCloudpack)();return(0,o.jsx)(c.Dialog,{title:"Cloudpack: Unrecognized imports found in project",id:l.elementIds.errorDialogRoot,style:"error",commands:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s.Button,{variant:"primary",onClick:()=>{r.restartAllTasks.mutate()},children:[(0,o.jsx)(h.Refresh20,{})," Retry bundling"]}),(0,o.jsx)(s.Button,{onClick:()=>{r.openConfigEditor.mutate()},children:"Edit Cloudpack config"})]}),children:e.map((e,r)=>(0,n.createElement)(d,{...e,index:r,key:r}))})},m=p}};
1
+ export const __webpack_esm_id__=475;export const __webpack_esm_ids__=[475];export const __webpack_esm_modules__={475(e,r,t){t.d(r,{ErrorDialog:()=>p,default:()=>m}),t.r(r);var o=t(789),n=t(384),s=t(245),i=t(938),a=t(123);const d=e=>{const{packageName:r,importPath:t,issuerUrl:n,fixable:d,isValidPackage:c}=e,l=(0,i.useCloudpack)(),h=(0,o.jsxs)("code",{children:[r,"."===t?"":`/${t.replace(/^\.\//,"")}`]}),p=(0,o.jsx)("code",{children:r}),m=t.endsWith("/");return(0,o.jsx)(a.ResultsAccordion,{name:h,index:e.index,result:"error",headerCommands:d&&(0,o.jsx)(s.Button,{onClick:()=>{l.addPackageOverride.mutate({packageName:r,importPath:t,issuerUrl:n,initiatedBy:"user"})},children:"Add override"}),getContent:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.ResultsAccordionContent,{itemName:"Problem",itemValue:(0,o.jsxs)(o.Fragment,{children:[c?(0,o.jsxs)(o.Fragment,{children:[h," was imported, but ",(0,o.jsx)("code",{children:t})," is not listed in ",p,"'s exports map",d?"":" and does not appear to exist on disk","."]}):(0,o.jsxs)(o.Fragment,{children:["An unrecognized package ",p," was imported."]}),n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("br",{}),"The bad import request came from:"," ",(0,o.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:n})]})]})}),(0,o.jsx)(a.ResultsAccordionContent,{itemName:"Possible solutions",itemValue:d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{children:["Click ",(0,o.jsx)("strong",{children:"Add override"})," above to add an exports map entry for this path in your ","app's ",(0,o.jsx)("code",{children:"cloudpack.generated.json"}),"."]}),(0,o.jsxs)("p",{children:["To automatically make updates like this in the future, add the following to your ","app's ",(0,o.jsx)("code",{children:"cloudpack.config.json"}),":",(0,o.jsx)("br",{}),(0,o.jsx)("code",{children:'{ "features": { "autoUpdateEntries": true } }'})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("strong",{children:n?"Check the requesting URL above":"Search for this import in your repo"})," to determine whether the problematic import comes from your own code, or a dependency's code.",!n&&" (You can also try opening this page in Firefox and checking the console to see which package's bundle imported the bad path$; this isn't properly logged in Chromium due to a bug.)",(0,o.jsxs)("ul",{children:[(0,o.jsxs)("li",{children:[(0,o.jsx)("strong",{children:"If from your repo:"})," ",m?"Remove the trailing slash from the import path.":c?(0,o.jsxs)(o.Fragment,{children:["Import from the package root or a valid sub-path. (If you think the path is valid, verify that the correct version of ",p," is listed as a dependency.)"]}):"Make sure the package name is correct and listed as a dependency of the importing package."]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("strong",{children:"If from a dependency:"}),m?"Ask the owners to remove the trailing slash, or create a temporary patch in your repo.":(0,o.jsxs)("ul",{children:[(0,o.jsxs)("li",{children:["Verify that your local installation is up to date (run ",(0,o.jsx)("code",{children:"yarn"})," or your repo's package manager)."]}),(0,o.jsxs)("li",{children:["Verify whether ",p," is listed in the importing package's dependencies. If not, ask the owners to add it (or temporarily add the dependency in one of your own packages and run ",(0,o.jsx)("code",{children:"cloudpack init"}),")."]}),(0,o.jsxs)("li",{children:["If the dependency is listed, check whether any ",(0,o.jsx)("code",{children:"resolutions"})," exist for"," ",p," which might be forcing it to an incompatible version. If so, talk to your eng sys team about removing or scoping the resolution."]}),(0,o.jsxs)("li",{children:["If ",p," is in ",(0,o.jsx)("code",{children:"peerDependencies"})," of the importing package, the peer may be incorrectly satisfied in your dependency tree. Talk to your eng sys team for help."]})]})]})]})]})})]})})};var c=t(212),l=t(405),h=t(309);const p=({unsupported:e})=>{const r=(0,i.useCloudpack)();return(0,o.jsx)(c.Dialog,{title:"Cloudpack: Unrecognized imports found in project",id:l.elementIds.errorDialogRoot,style:"error",commands:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s.Button,{variant:"primary",onClick:()=>{r.restartAllTasks.mutate()},children:[(0,o.jsx)(h.Refresh20,{})," Retry bundling"]}),(0,o.jsx)(s.Button,{onClick:()=>{r.openConfigEditor.mutate()},children:"Edit Cloudpack config"})]}),children:e.map((e,r)=>(0,n.createElement)(d,{...e,index:r,key:r}))})},m=p}};
2
2
  //# sourceMappingURL=475.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"475.chunk.js","mappings":"4NAaO,MAAMA,EAA8FC,IACzG,MAAM,YAAEC,EAAW,WAAEC,EAAU,UAAEC,EAAS,QAAEC,EAAO,eAAEC,GAAmBL,EAClEM,GAAYC,EAAAA,EAAAA,gBACZC,GACJ,UAACC,OAAAA,C,UACER,EACe,MAAfC,EAAqB,GAAK,IAAIA,EAAWQ,QAAQ,QAAS,SAGzDC,GAAgB,SAACF,OAAAA,C,SAAMR,IACvBW,EAAkBV,EAAWW,SAAS,KA8G5C,OACE,SAACC,EAAAA,iBAAgBA,CACfC,KAAMP,EACNQ,MAAOhB,EAAMgB,MACbC,OAAO,QACPC,eAAgBd,IAAW,SAACe,EAAAA,OAAMA,CAACC,QAjHnB,KACbd,EAAUe,mBAAmBC,OAAO,CAAErB,cAAaC,aAAYC,YAAWoB,YAAa,U,SAgHjC,iBACzDC,WA9Ge,KAEf,sB,WACE,SAACC,EAAAA,wBAAuBA,CACtBC,SAAS,UACTC,WACE,sB,UACGtB,GACC,sB,UACGG,EAAa,uBAAmB,SAACC,OAAAA,C,SAAMP,IAAkB,qBAAmBS,EAAc,iBAC/EP,EAAU,GAAK,wCAAwC,QAGrE,sB,UAAE,2BAAyBO,EAAc,oBAE1CR,IACC,sB,WACE,SAACyB,KAAAA,CAAAA,GAAK,oCAC4B,KAClC,SAACC,IAAAA,CAAEC,KAAM3B,EAAW4B,OAAO,SAASC,IAAI,sB,SACrC7B,aAOb,SAACsB,EAAAA,wBAAuBA,CACtBC,SAAS,qBACTC,UACEvB,GACE,sB,WACE,UAAC6B,IAAAA,C,UAAE,UACK,SAACC,SAAAA,C,SAAO,iBAAqB,4DAA0D,UAC7F,S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IAAKoD,EAAMnC,MAAOA,EAAOoC,IAAKpC,QAMhD,G","sources":["webpack://@ms-cloudpack/overlay/./src/components/ErrorDialog/PathError.tsx","webpack://@ms-cloudpack/overlay/./src/components/ErrorDialog/ErrorDialog.tsx"],"sourcesContent":["import type { FunctionComponent } from 'preact';\nimport type { UnsupportedErrorEvent } from './useErrorEvents.js';\nimport { Button } from '../Button/Button.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport {\n ResultsAccordion,\n ResultsAccordionContent,\n type ResultsAccordionProps,\n} from '../ResultsAccordion/ResultsAccordion.js';\n\n/**\n * Item (collapsible section) in the list of path errors in the ErrorDialog.\n */\nexport const PathError: FunctionComponent<UnsupportedErrorEvent & Pick<ResultsAccordionProps, 'index'>> = (props) => {\n const { packageName, importPath, issuerUrl, fixable, isValidPackage } = props;\n const cloudpack = useCloudpack();\n const prettyImport = (\n <code>\n {packageName}\n {importPath === '.' ? '' : `/${importPath.replace(/^\\.\\//, '')}`}\n </code>\n );\n const prettyPackage = <code>{packageName}</code>;\n const isTrailingSlash = importPath.endsWith('/');\n\n const addOverride = () => {\n void cloudpack.addPackageOverride.mutate({ packageName, importPath, issuerUrl, initiatedBy: 'user' });\n };\n\n const getContent = () => {\n return (\n <>\n <ResultsAccordionContent\n itemName=\"Problem\"\n itemValue={\n <>\n {isValidPackage ? (\n <>\n {prettyImport} was imported, but <code>{importPath}</code> is not listed in {prettyPackage}&apos;s\n exports map{fixable ? '' : ' and does not appear to exist on disk'}.\n </>\n ) : (\n <>An unrecognized package {prettyPackage} was imported.</>\n )}\n {issuerUrl && (\n <>\n <br />\n The bad import request came from:{' '}\n <a href={issuerUrl} target=\"_blank\" rel=\"noopener noreferrer\">\n {issuerUrl}\n </a>\n </>\n )}\n </>\n }\n />\n <ResultsAccordionContent\n itemName=\"Possible solutions\"\n itemValue={\n fixable ? (\n <>\n <p>\n Click <strong>Add override</strong> above to add an exports map entry for this path in your {\"app's \"}\n <code>cloudpack.generated.json</code>.\n </p>\n <p>\n To automatically make updates like this in the future, add the following to your {\"app's \"}\n <code>cloudpack.config.json</code>:\n <br />\n <code>{'{ \"features\": { \"autoUpdateEntries\": true } }'}</code>\n </p>\n </>\n ) : (\n <>\n <strong>{issuerUrl ? 'Check the requesting URL above' : 'Search for this import in your repo'}</strong>\n {` to determine whether the problematic import comes from your own code, or a dependency's code.`}\n {!issuerUrl &&\n // chromium bug closed as wontfix: https://issues.chromium.org/issues/40241413\n \" (You can also try opening this page in Firefox and checking the console to see which package's \" +\n `bundle imported the bad path$; this isn't properly logged in Chromium due to a bug.)`}\n <ul>\n <li>\n <strong>If from your repo:</strong>{' '}\n {isTrailingSlash ? (\n 'Remove the trailing slash from the import path.'\n ) : isValidPackage ? (\n <>\n Import from the package root or a valid sub-path. (If you think the path is valid, verify that\n the correct version of {prettyPackage} is listed as a dependency.)\n </>\n ) : (\n 'Make sure the package name is correct and listed as a dependency of the importing package.'\n )}\n </li>\n <li>\n <strong>If from a dependency:</strong>\n {isTrailingSlash ? (\n 'Ask the owners to remove the trailing slash, or create a temporary patch in your repo.'\n ) : (\n <ul>\n <li>\n Verify that your local installation is up to date (run <code>yarn</code> or your repo&apos;s\n package manager).\n </li>\n {/* If isValidPackage is false, obviously a dependency is missing. But also show this message\n if the package is found in the repo, because there could be an implicit dependency resulting in\n the wrong version being picked up. */}\n <li>\n Verify whether {prettyPackage} is listed in the importing package&apos;s dependencies. If not,\n ask the owners to add it (or temporarily add the dependency in one of your own packages and\n run <code>cloudpack init</code>).\n </li>\n <li>\n If the dependency is listed, check whether any <code>resolutions</code> exist for{' '}\n {prettyPackage} which might be forcing it to an incompatible version. If so, talk to your eng\n sys team about removing or scoping the resolution.\n </li>\n <li>\n If {prettyPackage} is in <code>peerDependencies</code> of the importing package, the peer may\n be incorrectly satisfied in your dependency tree. Talk to your eng sys team for help.\n </li>\n </ul>\n )}\n </li>\n </ul>\n </>\n )\n }\n />\n </>\n );\n };\n\n return (\n <ResultsAccordion\n name={prettyImport}\n index={props.index}\n result=\"error\"\n headerCommands={fixable && <Button onClick={addOverride}>Add override</Button>}\n getContent={getContent}\n />\n );\n};\n","import type { FunctionComponent } from 'preact';\nimport { Button } from '../Button/Button.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport { PathError } from './PathError.js';\nimport type { UnsupportedErrorEvent } from './useErrorEvents.js';\nimport { Dialog } from '../Dialog/Dialog.js';\nimport { elementIds } from '../../constants.js';\nimport { Refresh20 } from '../icons/Refresh20.js';\n\nexport interface ErrorDialogProps {\n unsupported: UnsupportedErrorEvent[];\n}\n\nexport const ErrorDialog: FunctionComponent<ErrorDialogProps> = ({ unsupported }) => {\n const cloudpack = useCloudpack();\n\n const reload = () => void cloudpack.restartAllTasks.mutate();\n const editConfig = () => void cloudpack.openConfigEditor.mutate();\n\n return (\n <Dialog\n title=\"Cloudpack: Unrecognized imports found in project\"\n id={elementIds.errorDialogRoot}\n style=\"error\"\n commands={\n <>\n <Button variant=\"primary\" onClick={reload}>\n <Refresh20 /> Retry bundling\n </Button>\n <Button onClick={editConfig}>Edit Cloudpack config</Button>\n </>\n }\n >\n {unsupported.map((data, index) => (\n <PathError {...data} index={index} key={index} />\n ))}\n </Dialog>\n );\n};\n\nexport default ErrorDialog;\n"],"names":["PathError","props","packageName","importPath","issuerUrl","fixable","isValidPackage","cloudpack","useCloudpack","prettyImport","code","replace","prettyPackage","isTrailingSlash","endsWith","ResultsAccordion","name","index","result","headerCommands","Button","onClick","addPackageOverride","mutate","initiatedBy","getContent","ResultsAccordionContent","itemName","itemValue","br","a","href","target","rel","p","strong","ul","li","ErrorDialog","unsupported","Dialog","title","id","elementIds","errorDialogRoot","style","commands","variant","restartAllTasks","Refresh20","openConfigEditor","map","data","key"],"ignoreList":[],"sourceRoot":""}
1
+ {"version":3,"file":"475.chunk.js","mappings":"6NAaO,MAAMA,EAA8FC,IACzG,MAAM,YAAEC,EAAW,WAAEC,EAAU,UAAEC,EAAS,QAAEC,E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O,uBAA4B,IACnCtB,EACC,kDACEP,GACF,sB,UAAE,yHAEwBM,EAAc,kCAGxC,iGAGJ,UAACyB,KAAAA,C,WACC,SAACF,SAAAA,C,SAAO,0BACPtB,EACC,0FAEA,UAACuB,KAAAA,C,WACC,UAACC,KAAAA,C,UAAG,2DACqD,SAAC3B,OAAAA,C,SAAK,SAAW,wCAM1E,UAAC2B,KAAAA,C,UAAG,kBACczB,EAAc,gKAE1B,SAACF,OAAAA,C,SAAK,mBAAqB,SAEjC,UAAC2B,KAAAA,C,UAAG,mDAC6C,SAAC3B,OAAAA,C,SAAK,gBAAkB,aAAW,IACjFE,EAAc,wIAGjB,UAACyB,KAAAA,C,UAAG,MACEzB,EAAc,WAAO,SAACF,OAAAA,C,SAAK,qBAAuB,uJ,+BCzGzE,MAAM4B,EAAmD,EAAGC,kBACjE,MAAMhC,GAAYC,EAAAA,EAAAA,gBAKlB,OACE,SAACgC,EAAAA,OAAMA,CACLC,MAAM,mDACNC,GAAIC,EAAAA,WAAWC,gBACfC,MAAM,QACNC,UACE,sB,WACE,UAAC1B,EAAAA,OAAMA,CAAC2B,QAAQ,UAAU1B,QAVnB,KAAWd,EAAUyC,gBAAgBzB,U,WAW1C,SAAC0B,EAAAA,UAASA,CAAAA,GAAG,sBAEf,SAAC7B,EAAAA,OAAMA,CAACC,QAZG,KAAWd,EAAU2C,iBAAiB3B,U,SAYpB,6B,SAIhCgB,EAAYY,IAAI,CAACC,EAAMnC,KACtB,mBAACjB,EAASA,IAAKoD,EAAMnC,MAAOA,EAAOoC,IAAKpC,QAMhD,G","sources":["webpack://@ms-cloudpack/overlay/./src/components/ErrorDialog/PathError.tsx","webpack://@ms-cloudpack/overlay/./src/components/ErrorDialog/ErrorDialog.tsx"],"sourcesContent":["import type { FunctionComponent } from 'preact';\nimport type { UnsupportedErrorEvent } from './useErrorEvents.js';\nimport { Button } from '../Button/Button.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport {\n ResultsAccordion,\n ResultsAccordionContent,\n type ResultsAccordionProps,\n} from '../ResultsAccordion/ResultsAccordion.js';\n\n/**\n * Item (collapsible section) in the list of path errors in the ErrorDialog.\n */\nexport const PathError: FunctionComponent<UnsupportedErrorEvent & Pick<ResultsAccordionProps, 'index'>> = (props) => {\n const { packageName, importPath, issuerUrl, fixable, isValidPackage } = props;\n const cloudpack = useCloudpack();\n const prettyImport = (\n <code>\n {packageName}\n {importPath === '.' ? '' : `/${importPath.replace(/^\\.\\//, '')}`}\n </code>\n );\n const prettyPackage = <code>{packageName}</code>;\n const isTrailingSlash = importPath.endsWith('/');\n\n const addOverride = () => {\n void cloudpack.addPackageOverride.mutate({ packageName, importPath, issuerUrl, initiatedBy: 'user' });\n };\n\n const getContent = () => {\n return (\n <>\n <ResultsAccordionContent\n itemName=\"Problem\"\n itemValue={\n <>\n {isValidPackage ? (\n <>\n {prettyImport} was imported, but <code>{importPath}</code> is not listed in {prettyPackage}&apos;s\n exports map{fixable ? '' : ' and does not appear to exist on disk'}.\n </>\n ) : (\n <>An unrecognized package {prettyPackage} was imported.</>\n )}\n {issuerUrl && (\n <>\n <br />\n The bad import request came from:{' '}\n <a href={issuerUrl} target=\"_blank\" rel=\"noopener noreferrer\">\n {issuerUrl}\n </a>\n </>\n )}\n </>\n }\n />\n <ResultsAccordionContent\n itemName=\"Possible solutions\"\n itemValue={\n fixable ? (\n <>\n <p>\n Click <strong>Add override</strong> above to add an exports map entry for this path in your {\"app's \"}\n <code>cloudpack.generated.json</code>.\n </p>\n <p>\n To automatically make updates like this in the future, add the following to your {\"app's \"}\n <code>cloudpack.config.json</code>:\n <br />\n <code>{'{ \"features\": { \"autoUpdateEntries\": true } }'}</code>\n </p>\n </>\n ) : (\n <>\n <strong>{issuerUrl ? 'Check the requesting URL above' : 'Search for this import in your repo'}</strong>\n {` to determine whether the problematic import comes from your own code, or a dependency's code.`}\n {!issuerUrl &&\n // chromium bug closed as wontfix: https://issues.chromium.org/issues/40241413\n \" (You can also try opening this page in Firefox and checking the console to see which package's \" +\n `bundle imported the bad path$; this isn't properly logged in Chromium due to a bug.)`}\n <ul>\n <li>\n <strong>If from your repo:</strong>{' '}\n {isTrailingSlash ? (\n 'Remove the trailing slash from the import path.'\n ) : isValidPackage ? (\n <>\n Import from the package root or a valid sub-path. (If you think the path is valid, verify that\n the correct version of {prettyPackage} is listed as a dependency.)\n </>\n ) : (\n 'Make sure the package name is correct and listed as a dependency of the importing package.'\n )}\n </li>\n <li>\n <strong>If from a dependency:</strong>\n {isTrailingSlash ? (\n 'Ask the owners to remove the trailing slash, or create a temporary patch in your repo.'\n ) : (\n <ul>\n <li>\n Verify that your local installation is up to date (run <code>yarn</code> or your repo&apos;s\n package manager).\n </li>\n {/* If isValidPackage is false, obviously a dependency is missing. But also show this message\n if the package is found in the repo, because there could be an implicit dependency resulting in\n the wrong version being picked up. */}\n <li>\n Verify whether {prettyPackage} is listed in the importing package&apos;s dependencies. If not,\n ask the owners to add it (or temporarily add the dependency in one of your own packages and\n run <code>cloudpack init</code>).\n </li>\n <li>\n If the dependency is listed, check whether any <code>resolutions</code> exist for{' '}\n {prettyPackage} which might be forcing it to an incompatible version. If so, talk to your eng\n sys team about removing or scoping the resolution.\n </li>\n <li>\n If {prettyPackage} is in <code>peerDependencies</code> of the importing package, the peer may\n be incorrectly satisfied in your dependency tree. Talk to your eng sys team for help.\n </li>\n </ul>\n )}\n </li>\n </ul>\n </>\n )\n }\n />\n </>\n );\n };\n\n return (\n <ResultsAccordion\n name={prettyImport}\n index={props.index}\n result=\"error\"\n headerCommands={fixable && <Button onClick={addOverride}>Add override</Button>}\n getContent={getContent}\n />\n );\n};\n","import type { FunctionComponent } from 'preact';\nimport { Button } from '../Button/Button.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport { PathError } from './PathError.js';\nimport type { UnsupportedErrorEvent } from './useErrorEvents.js';\nimport { Dialog } from '../Dialog/Dialog.js';\nimport { elementIds } from '../../constants.js';\nimport { Refresh20 } from '../icons/Refresh20.js';\n\nexport interface ErrorDialogProps {\n unsupported: UnsupportedErrorEvent[];\n}\n\nexport const ErrorDialog: FunctionComponent<ErrorDialogProps> = ({ unsupported }) => {\n const cloudpack = useCloudpack();\n\n const reload = () => void cloudpack.restartAllTasks.mutate();\n const editConfig = () => void cloudpack.openConfigEditor.mutate();\n\n return (\n <Dialog\n title=\"Cloudpack: Unrecognized imports found in project\"\n id={elementIds.errorDialogRoot}\n style=\"error\"\n commands={\n <>\n <Button variant=\"primary\" onClick={reload}>\n <Refresh20 /> Retry bundling\n </Button>\n <Button onClick={editConfig}>Edit Cloudpack config</Button>\n </>\n }\n >\n {unsupported.map((data, index) => (\n <PathError {...data} index={index} key={index} />\n ))}\n </Dialog>\n );\n};\n\nexport default ErrorDialog;\n"],"names":["PathError","props","packageName","importPath","issuerUrl","fixable","isValidPackage","cloudpack","useCloudpack","prettyImport","code","replace","prettyPackage","isTrailingSlash","endsWith","ResultsAccordion","name","index","result","headerCommands","Button","onClick","addPackageOverride","mutate","initiatedBy","getContent","ResultsAccordionContent","itemName","itemValue","br","a","href","target","rel","p","strong","ul","li","ErrorDialog","unsupported","Dialog","title","id","elementIds","errorDialogRoot","style","commands","variant","restartAllTasks","Refresh20","openConfigEditor","map","data","key"],"sourceRoot":""}