@ms-cloudpack/overlay 0.17.144 → 0.17.145
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const __webpack_id__=240;export const __webpack_ids__=[240];export const __webpack_modules__={240:(e,a,t)=>{t.r(a),t.d(a,{ErrorDialog:()=>E,default:()=>v});var r=t(788),l=t(545),n=t(15),o=t(54),
|
|
1
|
+
export const __webpack_id__=240;export const __webpack_ids__=[240];export const __webpack_modules__={240:(e,a,t)=>{t.r(a),t.d(a,{ErrorDialog:()=>E,default:()=>v});var r=t(788),l=t(545),n=t(15),o=t(54),s=t(844),c=t(104),m=t.n(c),d=t(791);const i=e=>{const[a,t]=r.useState(!1),{packageName:c,importPath:i,issuerUrl:u,fixable:p}=e,f=(0,n.useCloudpack)(),E=i.replace(/^\.\//,""),v=`${c}${"."===E?"":`/${E}`}`;return r.createElement("div",{className:o.default.root},r.createElement("div",{className:m()(o.default.header,o.default.error)},r.createElement("button",{className:o.default.expandButton,onClick:()=>t(!a),"aria-label":a?`Minimize ${v}`:`Expand ${v}`},r.createElement("img",{className:m()(o.default.expandIcon,!a&&o.default.collapsed),src:d,alt:"Chevron down icon"})),r.createElement("img",{className:o.default.errorIcon,src:s,alt:"Error icon"}),r.createElement("div",{className:o.default.title},`${v}`)),a&&r.createElement(r.Fragment,null,r.createElement("div",{className:o.default.commands},p&&r.createElement(l.Button,{onClick:()=>{f.addPackageOverride.mutate({packageName:c,importPath:i,issuerUrl:u,initiatedBy:"user"})}},"Add override"),r.createElement(l.Button,{onClick:()=>{f.openConfigEditor.mutate()}},"Edit config file")),r.createElement("div",{className:o.default.content},r.createElement("div",{className:o.default.title},"Details"),r.createElement("div",{className:o.default.nameValueArea},r.createElement("div",{className:o.default.name},"Problem"),r.createElement("div",{className:o.default.value},"."===i?`An unrecognized package "${c}" was imported.`:`Path "${i}" was imported from package "${c}" but was not recognized as an exported path.`)),r.createElement("div",{className:o.default.nameValueArea},r.createElement("div",{className:o.default.name},"Solution"),r.createElement("div",{className:o.default.value},p?`Remove the path from the import in your source. (Import from "${c}" rather than "${v}")`:"."===i?"Make sure the package name is valid.":i.endsWith("/")?"Remove the trailing slash from the import path.":"Import not found on package. Make sure the import path is valid.")))))};var u=t(816),p=t(863),f=t(116);const E=({unsupported:e})=>{const a=(0,n.useCloudpack)();return r.createElement(p.Dialog,{title:"Found unsupported paths in your project",id:f.elementIds.errorDialogRoot,style:"error",commands:[r.createElement(l.Button,{primary:!0,onClick:()=>{a.restartAllTasks.mutate()},key:"1"},"Restart all tasks")]},r.createElement("div",{className:u.default.root},e.map(((e,a)=>r.createElement(i,{...e,key:a})))))},v=E}};
|
|
2
2
|
//# sourceMappingURL=240.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"240.chunk.js","mappings":"6OASO,MAAMA,EAA8CC,IACzD,MAAOC,EAAaC,GAAkBC,EAAAA,UAAwB,IACxD,YAAEC,EAAW,WAAEC,EAAU,UAAEC,EAAS,QAAEC,GAAYP,EAClDQ,GAAYC,EAAAA,EAAAA,gBACZC,EAAmBL,EAAWM,QAAQ,QAAS,IAC/CC,EAAqB,GAAGR,IAAmC,MAArBM,EAA2B,GAAK,IAAIA,
|
|
1
|
+
{"version":3,"file":"240.chunk.js","mappings":"6OASO,MAAMA,EAA8CC,IACzD,MAAOC,EAAaC,GAAkBC,EAAAA,UAAwB,IACxD,YAAEC,EAAW,WAAEC,EAAU,UAAEC,EAAS,QAAEC,GAAYP,EAClDQ,GAAYC,EAAAA,EAAAA,gBACZC,EAAmBL,EAAWM,QAAQ,QAAS,IAC/CC,EAAqB,GAAGR,IAAmC,MAArBM,EAA2B,GAAK,IAAIA,MAQhF,OACE,gBAACG,MAAAA,CAAIC,UAAWC,EAAAA,QAAOC,MACrB,gBAACH,MAAAA,CAAIC,UAAWG,IAAGF,EAAAA,QAAOG,OAAQH,EAAAA,QAAOI,QACvC,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AClB,kDACA,uEAAkE,E,+BCpDnF,MAAMC,EAA0C,EAAGC,kBACxD,MAAMrC,GAAYC,EAAAA,EAAAA,gBAIlB,OACE,gBAACqC,EAAAA,OAAMA,CACLd,MAAM,0CACNe,GAAIC,EAAAA,WAAWC,gBACfC,MAAM,QACNjB,SAAU,CACR,gBAACC,EAAAA,OAAMA,CAACiB,SAAAA,EAAQ7B,QARP,KAAWd,EAAU4C,gBAAgBhB,QAAQ,EAQrBiB,IAAI,KAAI,uBAK3C,gBAACxC,MAAAA,CAAIC,UAAWC,EAAAA,QAAOC,MACpB6B,EAAYS,KAAI,CAACC,EAAMC,IACtB,gBAACzD,EAASA,IAAKwD,EAAMF,IAAKG,O,EAOpC,G","sources":["webpack://@ms-cloudpack/overlay/./src/components/ErrorDialog/PathError.tsx","webpack://@ms-cloudpack/overlay/./src/components/ErrorDialog/ErrorDialog.tsx"],"sourcesContent":["import React from 'react';\nimport styles from '../StatusDialog/TaskStatus.module.css';\nimport ErrorIcon from '../../images/error-24.inline.svg';\nimport { default as cx } from 'classnames';\nimport ChevronDownIcon from '../../images/chevrondown-20.inline.svg';\nimport type { UnsupportedErrorEvent } from './useErrorEvents.js';\nimport { Button } from '../Button/Button.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\n\nexport const PathError: React.FC<UnsupportedErrorEvent> = (props) => {\n const [showContent, setShowContent] = React.useState<boolean>(false);\n const { packageName, importPath, issuerUrl, fixable } = props;\n const cloudpack = useCloudpack();\n const prettyImportPath = importPath.replace(/^\\.\\//, '');\n const prettyImportString = `${packageName}${prettyImportPath === '.' ? '' : `/${prettyImportPath}`}`;\n\n const editConfig = () => void cloudpack.openConfigEditor.mutate();\n\n const addOverride = () => {\n void cloudpack.addPackageOverride.mutate({ packageName, importPath, issuerUrl, initiatedBy: 'user' });\n };\n\n return (\n <div className={styles.root}>\n <div className={cx(styles.header, styles.error)}>\n <button\n className={styles.expandButton}\n onClick={() => setShowContent(!showContent)}\n aria-label={showContent ? `Minimize ${prettyImportString}` : `Expand ${prettyImportString}`}\n >\n <img\n className={cx(styles.expandIcon, !showContent && styles.collapsed)}\n src={ChevronDownIcon}\n alt=\"Chevron down icon\"\n />\n </button>\n <img className={styles.errorIcon} src={ErrorIcon} alt=\"Error icon\" />\n <div className={styles.title}>{`${prettyImportString}`}</div>\n </div>\n {showContent && (\n <>\n <div className={styles.commands}>\n {fixable && <Button onClick={addOverride}>Add override</Button>}\n <Button onClick={editConfig}>Edit config file</Button>\n </div>\n <div className={styles.content}>\n <div className={styles.title}>Details</div>\n\n <div className={styles.nameValueArea}>\n <div className={styles.name}>Problem</div>\n <div className={styles.value}>\n {importPath === '.'\n ? `An unrecognized package \"${packageName}\" was imported.`\n : `Path \"${importPath}\" was imported from package \"${packageName}\" but was not recognized as an exported path.`}\n </div>\n </div>\n <div className={styles.nameValueArea}>\n <div className={styles.name}>Solution</div>\n <div className={styles.value}>\n {fixable\n ? `Remove the path from the import in your source. (Import from \"${packageName}\" rather than \"${prettyImportString}\")`\n : importPath === '.'\n ? `Make sure the package name is valid.`\n : importPath.endsWith('/')\n ? `Remove the trailing slash from the import path.`\n : `Import not found on package. Make sure the import path is valid.`}\n </div>\n </div>\n </div>\n </>\n )}\n </div>\n );\n};\n","import { default as React } from 'react';\nimport { Button } from '../Button/Button.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\nimport { PathError } from './PathError.js';\nimport styles from '../StatusDialog/TaskList.module.css';\nimport type { UnsupportedErrorEvent } from './useErrorEvents.js';\nimport { Dialog } from '../Dialog/Dialog.js';\nimport { elementIds } from '../../constants.js';\n\nexport interface ErrorDialogProps {\n unsupported: UnsupportedErrorEvent[];\n}\n\nexport const ErrorDialog: React.FC<ErrorDialogProps> = ({ unsupported }) => {\n const cloudpack = useCloudpack();\n\n const reload = () => void cloudpack.restartAllTasks.mutate();\n\n return (\n <Dialog\n title=\"Found unsupported paths in your project\"\n id={elementIds.errorDialogRoot}\n style=\"error\"\n commands={[\n <Button primary onClick={reload} key=\"1\">\n Restart all tasks\n </Button>,\n ]}\n >\n <div className={styles.root}>\n {unsupported.map((data, index) => (\n <PathError {...data} key={index} />\n ))}\n </div>\n </Dialog>\n );\n};\n\nexport default ErrorDialog;\n"],"names":["PathError","props","showContent","setShowContent","React","packageName","importPath","issuerUrl","fixable","cloudpack","useCloudpack","prettyImportPath","replace","prettyImportString","div","className","styles","root","cx","header","error","button","expandButton","onClick","aria-label","img","expandIcon","collapsed","src","ChevronDownIcon","alt","errorIcon","ErrorIcon","title","commands","Button","addPackageOverride","mutate","initiatedBy","openConfigEditor","content","nameValueArea","name","value","endsWith","ErrorDialog","unsupported","Dialog","id","elementIds","errorDialogRoot","style","primary","restartAllTasks","key","map","data","index"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathError.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorDialog/PathError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAIjE,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"PathError.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorDialog/PathError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAIjE,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgErD,CAAC"}
|
|
@@ -12,7 +12,9 @@ export const PathError = (props) => {
|
|
|
12
12
|
const prettyImportPath = importPath.replace(/^\.\//, '');
|
|
13
13
|
const prettyImportString = `${packageName}${prettyImportPath === '.' ? '' : `/${prettyImportPath}`}`;
|
|
14
14
|
const editConfig = () => void cloudpack.openConfigEditor.mutate();
|
|
15
|
-
const addOverride = () =>
|
|
15
|
+
const addOverride = () => {
|
|
16
|
+
void cloudpack.addPackageOverride.mutate({ packageName, importPath, issuerUrl, initiatedBy: 'user' });
|
|
17
|
+
};
|
|
16
18
|
return (React.createElement("div", { className: styles.root },
|
|
17
19
|
React.createElement("div", { className: cx(styles.header, styles.error) },
|
|
18
20
|
React.createElement("button", { className: styles.expandButton, onClick: () => setShowContent(!showContent), "aria-label": showContent ? `Minimize ${prettyImportString}` : `Expand ${prettyImportString}` },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathError.js","sourceRoot":"","sources":["../../../src/components/ErrorDialog/PathError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,uCAAuC,CAAC;AAC3D,OAAO,SAAS,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,eAAe,MAAM,wCAAwC,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEzE,MAAM,CAAC,MAAM,SAAS,GAAoC,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAU,KAAK,CAAC,CAAC;IACrE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACzD,MAAM,kBAAkB,GAAG,GAAG,WAAW,GAAG,gBAAgB,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,gBAAgB,EAAE,EAAE,C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AAC,CAAC,4BAA4B,WAAW,iBAAiB;wBAC1D,CAAC,CAAC,SAAS,UAAU,gCAAgC,WAAW,+CAA+C,CAC7G,CACF;gBACN,6BAAK,SAAS,EAAE,MAAM,CAAC,aAAa;oBAClC,6BAAK,SAAS,EAAE,MAAM,CAAC,IAAI,eAAgB;oBAC3C,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK,IACzB,OAAO;wBACN,CAAC,CAAC,iEAAiE,WAAW,kBAAkB,kBAAkB,IAAI;wBACtH,CAAC,CAAC,UAAU,KAAK,GAAG;4BAClB,CAAC,CAAC,sCAAsC;4BACxC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;gCACxB,CAAC,CAAC,iDAAiD;gCACnD,CAAC,CAAC,kEAAkE,CACtE,CACF,CACF,CACL,CACJ,CACG,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport styles from '../StatusDialog/TaskStatus.module.css';\nimport ErrorIcon from '../../images/error-24.inline.svg';\nimport { default as cx } from 'classnames';\nimport ChevronDownIcon from '../../images/chevrondown-20.inline.svg';\nimport type { UnsupportedErrorEvent } from './useErrorEvents.js';\nimport { Button } from '../Button/Button.js';\nimport { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';\n\nexport const PathError: React.FC<UnsupportedErrorEvent> = (props) => {\n const [showContent, setShowContent] = React.useState<boolean>(false);\n const { packageName, importPath, issuerUrl, fixable } = props;\n const cloudpack = useCloudpack();\n const prettyImportPath = importPath.replace(/^\\.\\//, '');\n const prettyImportString = `${packageName}${prettyImportPath === '.' ? '' : `/${prettyImportPath}`}`;\n\n const editConfig = () => void cloudpack.openConfigEditor.mutate();\n\n const addOverride = () => {\n void cloudpack.addPackageOverride.mutate({ packageName, importPath, issuerUrl, initiatedBy: 'user' });\n };\n\n return (\n <div className={styles.root}>\n <div className={cx(styles.header, styles.error)}>\n <button\n className={styles.expandButton}\n onClick={() => setShowContent(!showContent)}\n aria-label={showContent ? `Minimize ${prettyImportString}` : `Expand ${prettyImportString}`}\n >\n <img\n className={cx(styles.expandIcon, !showContent && styles.collapsed)}\n src={ChevronDownIcon}\n alt=\"Chevron down icon\"\n />\n </button>\n <img className={styles.errorIcon} src={ErrorIcon} alt=\"Error icon\" />\n <div className={styles.title}>{`${prettyImportString}`}</div>\n </div>\n {showContent && (\n <>\n <div className={styles.commands}>\n {fixable && <Button onClick={addOverride}>Add override</Button>}\n <Button onClick={editConfig}>Edit config file</Button>\n </div>\n <div className={styles.content}>\n <div className={styles.title}>Details</div>\n\n <div className={styles.nameValueArea}>\n <div className={styles.name}>Problem</div>\n <div className={styles.value}>\n {importPath === '.'\n ? `An unrecognized package \"${packageName}\" was imported.`\n : `Path \"${importPath}\" was imported from package \"${packageName}\" but was not recognized as an exported path.`}\n </div>\n </div>\n <div className={styles.nameValueArea}>\n <div className={styles.name}>Solution</div>\n <div className={styles.value}>\n {fixable\n ? `Remove the path from the import in your source. (Import from \"${packageName}\" rather than \"${prettyImportString}\")`\n : importPath === '.'\n ? `Make sure the package name is valid.`\n : importPath.endsWith('/')\n ? `Remove the trailing slash from the import path.`\n : `Import not found on package. Make sure the import path is valid.`}\n </div>\n </div>\n </div>\n </>\n )}\n </div>\n );\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/overlay",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.145",
|
|
4
4
|
"description": "The Cloudpack overlay ux.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepack": "cp .npmignore dist/.npmignore"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ms-cloudpack/api-server": "^0.61.
|
|
32
|
+
"@ms-cloudpack/api-server": "^0.61.12",
|
|
33
33
|
"@ms-cloudpack/common-types": "^0.24.10",
|
|
34
34
|
"@ms-cloudpack/common-types-browser": "^0.5.4",
|
|
35
35
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|