@ms-cloudpack/overlay 0.19.91 → 0.19.93
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 +2 -2
- package/dist/browser-esm/3.chunk.js +1 -1
- package/dist/browser-esm/3.chunk.js.map +1 -1
- package/dist/browser-esm/475.chunk.js +1 -1
- package/dist/browser-esm/598.chunk.js +1 -1
- package/dist/browser-esm/598.chunk.js.map +1 -1
- package/dist/browser-esm/721.chunk.js +2 -0
- package/dist/browser-esm/{558.chunk.js.map → 721.chunk.js.map} +1 -1
- package/dist/browser-esm/79.chunk.js +3 -0
- package/dist/browser-esm/79.chunk.js.map +1 -0
- package/dist/browser-esm/lib/constants.js +1 -1
- package/dist/browser-esm/lib/constants.js.map +1 -1
- package/dist/browser-esm/lib/index.js +1 -1
- package/dist/browser-esm/lib/index.js.map +1 -1
- package/lib/components/Dialog/Dialog.js +1 -5
- package/lib/components/Dialog/Dialog.js.map +1 -1
- package/lib/components/ErrorDialog/ErrorDialog.d.ts.map +1 -1
- package/lib/components/ErrorDialog/ErrorDialog.js +1 -1
- package/lib/components/ErrorDialog/PathError.js +1 -1
- package/lib/components/Overlay/Overlay.js +1 -1
- package/lib/components/ResultsAccordion/ResultsAccordion.js +1 -1
- package/lib/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/components/StatusDialog/StatusDialog.d.ts.map +1 -1
- package/lib/components/StatusDialog/StatusDialog.js +1 -1
- package/lib/components/StatusDialog/TaskList.js +1 -1
- package/lib/components/StatusDialog/TaskResultItem.js +2 -4
- package/lib/components/StatusDialog/TaskResultItem.js.map +1 -1
- package/lib/components/StatusDialog/TaskStatus.js +1 -1
- package/lib/constants.d.ts +5 -5
- package/lib/constants.d.ts.map +1 -1
- package/lib/handlePackageUpdate.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/browser-esm/337.chunk.js +0 -3
- package/dist/browser-esm/337.chunk.js.map +0 -1
- package/dist/browser-esm/558.chunk.js +0 -2
- /package/dist/browser-esm/{337.chunk.js.LICENSE.txt → 79.chunk.js.LICENSE.txt} +0 -0
|
@@ -24,10 +24,6 @@ export const Dialog = (props) => {
|
|
|
24
24
|
containerElementRef: dialogRootRef,
|
|
25
25
|
dragElementRef: titleRef,
|
|
26
26
|
});
|
|
27
|
-
return (
|
|
28
|
-
// The overlay must be outside FocusOn so that clicking on it will close the dialog
|
|
29
|
-
_jsx("div", { className: styles.overlay, children: _jsx(FocusOn, { className: styles.focusOn, onClickOutside: onClose, onEscapeKey: onClose, onActivation: () => titleRef.current?.focus(), children: _jsxs("div", { id: id, ref: dialogRootRef, class: cx(styles.dialog, style === 'error' && styles.error), role: "dialog", "aria-modal": true, "aria-labelledby": elementIds.dialogTitle, children: [_jsxs("div", { class: styles.titleArea, children: [_jsx("h2", { ref: titleRef, id: elementIds.dialogTitle, class: cx(styles.title, draggable && styles.draggable), tabIndex: -1, children: title }), onClose && (
|
|
30
|
-
// a close icon is common/universal enough that it doesn't need hover text
|
|
31
|
-
_jsx(Button, { variant: "iconOnly", onClick: onClose, "aria-label": "Close", children: _jsx(Dismiss16, {}) }))] }), commands && _jsx("div", { class: styles.commands, children: commands }), _jsx("div", { class: styles.content, children: children })] }) }) }));
|
|
27
|
+
return (_jsx("div", { className: styles.overlay, children: _jsx(FocusOn, { className: styles.focusOn, onClickOutside: onClose, onEscapeKey: onClose, onActivation: () => titleRef.current?.focus(), children: _jsxs("div", { id: id, ref: dialogRootRef, class: cx(styles.dialog, style === 'error' && styles.error), role: "dialog", "aria-modal": true, "aria-labelledby": elementIds.dialogTitle, children: [_jsxs("div", { class: styles.titleArea, children: [_jsx("h2", { ref: titleRef, id: elementIds.dialogTitle, class: cx(styles.title, draggable && styles.draggable), tabIndex: -1, children: title }), onClose && (_jsx(Button, { variant: "iconOnly", onClick: onClose, "aria-label": "Close", children: _jsx(Dismiss16, {}) }))] }), commands && _jsx("div", { class: styles.commands, children: commands }), _jsx("div", { class: styles.content, children: children })] }) }) }));
|
|
32
28
|
};
|
|
33
29
|
//# sourceMappingURL=Dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,8BAA8B;AAC9B,MAAM,OAAO,GAAG,QAEf,CAAC;AAYF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAmC,CAAC,KAAK,EAAE,EAAE;IAC9D,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3E,MAAM,aAAa,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAE9C,YAAY,CAAC;QACX,OAAO,EAAE,CAAC,CAAC,SAAS;QACpB,mBAAmB,EAAE,aAAa;QAClC,cAAc,EAAE,QAAQ;KACzB,CAAC,CAAC;IAEH,OAAO
|
|
1
|
+
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC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W,aAEvC,eAAK,KAAK,EAAE,MAAM,CAAC,SAAS,aAC1B,aACE,GAAG,EAAE,QAAQ,EACb,EAAE,EAAE,UAAU,CAAC,WAAW,EAC1B,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,EACtD,QAAQ,EAAE,CAAC,CAAC,YAEX,KAAK,GACH,EACJ,OAAO,IAAI,CAEV,KAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAE,OAAO,gBAAa,OAAO,YAC7D,KAAC,SAAS,KAAG,GACN,CACV,IACG,EACL,QAAQ,IAAI,cAAK,KAAK,EAAE,MAAM,CAAC,QAAQ,YAAG,QAAQ,GAAO,EAC1D,cAAK,KAAK,EAAE,MAAM,CAAC,OAAO,YAAG,QAAQ,GAAO,IACxC,GACE,GACN,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import cx from 'classnames';\nimport type { ComponentChildren, FunctionComponent, ComponentProps } from 'preact';\nimport { useRef } from 'preact/hooks';\nimport { FocusOn as _FocusOn } from 'react-focus-on';\nimport styles from './Dialog.module.css';\nimport { useDraggable } from '../../hooks/useDraggable.js';\nimport { Button } from '../Button/Button.js';\nimport { elementIds } from '../../constants.js';\nimport { Dismiss16 } from '../icons/Dismiss16.js';\n\n// Re-type children for preact\nconst FocusOn = _FocusOn as FunctionComponent<\n Omit<ComponentProps<typeof _FocusOn>, 'children'> & { children: ComponentChildren }\n>;\n\nexport interface DialogProps {\n title: string;\n id: string;\n style?: 'default' | 'error';\n draggable?: boolean;\n onClose?: () => void;\n commands?: ComponentChildren;\n children: ComponentChildren;\n}\n\n/**\n * Dialog component which takes title and commands as props and content as children.\n *\n * If multiple children are provided, they'll be styled with a flex column layout with gaps.\n * To prevent this behavior, wrap the children in a single div.\n */\nexport const Dialog: FunctionComponent<DialogProps> = (props) => {\n const { title, id, style, draggable, onClose, commands, children } = props;\n const dialogRootRef = useRef<HTMLDivElement>(null);\n const titleRef = useRef<HTMLDivElement>(null);\n\n useDraggable({\n enabled: !!draggable,\n containerElementRef: dialogRootRef,\n dragElementRef: titleRef,\n });\n\n return (\n // The overlay must be outside FocusOn so that clicking on it will close the dialog\n <div className={styles.overlay}>\n <FocusOn\n className={styles.focusOn}\n onClickOutside={onClose}\n onEscapeKey={onClose}\n onActivation={() => titleRef.current?.focus()}\n >\n <div\n id={id}\n ref={dialogRootRef}\n class={cx(styles.dialog, style === 'error' && styles.error)}\n role=\"dialog\"\n aria-modal\n aria-labelledby={elementIds.dialogTitle}\n >\n <div class={styles.titleArea}>\n <h2\n ref={titleRef}\n id={elementIds.dialogTitle}\n class={cx(styles.title, draggable && styles.draggable)}\n tabIndex={-1}\n >\n {title}\n </h2>\n {onClose && (\n // a close icon is common/universal enough that it doesn't need hover text\n <Button variant=\"iconOnly\" onClick={onClose} aria-label=\"Close\">\n <Dismiss16 />\n </Button>\n )}\n </div>\n {commands && <div class={styles.commands}>{commands}</div>}\n <div class={styles.content}>{children}</div>\n </div>\n </FocusOn>\n </div>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorDialog.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorDialog/ErrorDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAIhD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAKjE,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,CAyB3D,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorDialog.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorDialog/ErrorDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAIhD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAKjE,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,CAyB3D,CAAC;eAEa,WAAW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
import { createElement as _createElement } from "preact";
|
|
3
3
|
import { Button } from '../Button/Button.js';
|
|
4
4
|
import { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
import { Button } from '../Button/Button.js';
|
|
3
3
|
import { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';
|
|
4
4
|
import { ResultsAccordion, ResultsAccordionContent, } from '../ResultsAccordion/ResultsAccordion.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
import { lazy, Suspense } from 'preact/compat';
|
|
3
3
|
import { useState, useRef, useEffect } from 'preact/hooks';
|
|
4
4
|
import { StatusBadge } from '../StatusBadge/StatusBadge.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
import { useState } from 'preact/hooks';
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import styles from './ResultsAccordion.module.css';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
import { useCallback, useRef, useState } from 'preact/hooks';
|
|
3
3
|
import { useDraggable } from '../../hooks/useDraggable.js';
|
|
4
4
|
import styles from './StatusBadge.module.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusDialog.d.ts","sourceRoot":"","sources":["../../../src/components/StatusDialog/StatusDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAuB,MAAM,QAAQ,CAAC;AAWrE,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CA0D7D,CAAC;
|
|
1
|
+
{"version":3,"file":"StatusDialog.d.ts","sourceRoot":"","sources":["../../../src/components/StatusDialog/StatusDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAuB,MAAM,QAAQ,CAAC;AAWrE,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CA0D7D,CAAC;eAEa,YAAY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
import { useCallback, useState } from 'preact/hooks';
|
|
4
4
|
import { TaskList } from './TaskList.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
import { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';
|
|
4
4
|
import styles from './TaskResultItem.module.css';
|
|
@@ -18,9 +18,7 @@ export const TaskResultItem = (props) => {
|
|
|
18
18
|
// or some internal of cloudpack, and since the user might not know about the different bundlers
|
|
19
19
|
// and certainly doesn't know about cloudpack internals, a bit of context is helpful.
|
|
20
20
|
const friendlySource = bundlerNames.includes(item.source) ? `${item.source} bundler` : `cloudpack ${item.source}`;
|
|
21
|
-
return (_jsxs("div", { class: styles.root, children: [_jsx("div", { class: cx(styles.statusBar, type === 'warning' && styles.warning) }), _jsxs("div", { class: styles.content, children: [_jsxs("div", { class: styles.titleArea, children: [index + 1, ". ", _jsx(ItemLocation, { loc: loc, inputPath: inputPath }), " (via: ", friendlySource, ")"] }), _jsx("pre", { class: styles.text, children: stripAnsi(item.text) }), notes.length > 0 && (
|
|
22
|
-
// Formatting here might not be ideal, but messages very rarely have notes
|
|
23
|
-
_jsxs("details", { children: [_jsx("summary", { children: "Expand for more details" }), _jsx("ul", { children: notes.map((note, i) => (_jsxs("li", { children: [note.location && (_jsxs(_Fragment, { children: [_jsx(ItemLocation, { loc: note.location, inputPath: inputPath }), _jsx("br", {})] })), note.text && _jsx("pre", { class: styles.text, children: stripAnsi(note.text) })] }, i))) })] }))] })] }));
|
|
21
|
+
return (_jsxs("div", { class: styles.root, children: [_jsx("div", { class: cx(styles.statusBar, type === 'warning' && styles.warning) }), _jsxs("div", { class: styles.content, children: [_jsxs("div", { class: styles.titleArea, children: [index + 1, ". ", _jsx(ItemLocation, { loc: loc, inputPath: inputPath }), " (via: ", friendlySource, ")"] }), _jsx("pre", { class: styles.text, children: stripAnsi(item.text) }), notes.length > 0 && (_jsxs("details", { children: [_jsx("summary", { children: "Expand for more details" }), _jsx("ul", { children: notes.map((note, i) => (_jsxs("li", { children: [note.location && (_jsxs(_Fragment, { children: [_jsx(ItemLocation, { loc: note.location, inputPath: inputPath }), _jsx("br", {})] })), note.text && _jsx("pre", { class: styles.text, children: stripAnsi(note.text) })] }, i))) })] }))] })] }));
|
|
24
22
|
};
|
|
25
23
|
/**
|
|
26
24
|
* Remove ANSI codes from a string. (This is duplicated from `task-reporter` to avoid needing
|
|
@@ -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AAC,GAAG,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrG,uFAAuF;IACvF,wCAAwC;IACxC,mOAAmO;IACnO,IAAI,CAAC,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;QAC9C,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,MAAM,UAAU,GAAG,GAAS,EAAE;QAC5B,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,KAAK,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC;YACnC,QAAQ,EAAE,SAAS;YACnB,YAAY,EAAE,GAAG,CAAC,IAAI;YACtB,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,MAAM,EAAE,GAAG,CAAC,MAAM;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,UAAU,YACvC,cAAc,GACR,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["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"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
2
|
import { TaskResultItem } from './TaskResultItem.js';
|
|
3
3
|
import { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';
|
|
4
4
|
import { Button } from '../Button/Button.js';
|
package/lib/constants.d.ts
CHANGED
|
@@ -2,22 +2,22 @@ export declare const elementIds: {
|
|
|
2
2
|
/**
|
|
3
3
|
* ID for the root element of the overlay.
|
|
4
4
|
*/
|
|
5
|
-
readonly root:
|
|
5
|
+
readonly root: 'cloudpack-overlay-root';
|
|
6
6
|
/**
|
|
7
7
|
* ID for the root element of the error dialog.
|
|
8
8
|
*/
|
|
9
|
-
readonly errorDialogRoot:
|
|
9
|
+
readonly errorDialogRoot: 'cloudpack-overlay-error-dialog';
|
|
10
10
|
/**
|
|
11
11
|
* ID for the root element of the status dialog.
|
|
12
12
|
*/
|
|
13
|
-
readonly statusDialogRoot:
|
|
13
|
+
readonly statusDialogRoot: 'cloudpack-overlay-status-dialog';
|
|
14
14
|
/**
|
|
15
15
|
* ID for the title element of any dialog.
|
|
16
16
|
*/
|
|
17
|
-
readonly dialogTitle:
|
|
17
|
+
readonly dialogTitle: 'cloudpack-overlay-dialog-title';
|
|
18
18
|
/**
|
|
19
19
|
* ID for the root element of the status badge.
|
|
20
20
|
*/
|
|
21
|
-
readonly statusBadgeRoot:
|
|
21
|
+
readonly statusBadgeRoot: 'cloudpack-overlay-status-badge';
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=constants.d.ts.map
|
package/lib/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;IACrB;;OAEG;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;IACrB;;OAEG;aACH,IAAI,EAAE,wBAAwB;IAC9B;;OAEG;aACH,eAAe,EAAE,gCAAgC;IACjD;;OAEG;aACH,gBAAgB,EAAE,iCAAiC;IACnD;;OAEG;aACH,WAAW,EAAE,gCAAgC;IAC7C;;OAEG;aACH,eAAe,EAAE,gCAAgC;CACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlePackageUpdate.d.ts","sourceRoot":"","sources":["../src/handlePackageUpdate.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"handlePackageUpdate.d.ts","sourceRoot":"","sources":["../src/handlePackageUpdate.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,mBAAmB,SAAgB,OAAO,KAAG,OAAO,CAAC,IAAI,CAqFrE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/overlay",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.93",
|
|
4
4
|
"description": "The Cloudpack overlay UX",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"prepack": "cp .npmignore dist/.npmignore"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ms-cloudpack/api-server": "^0.67.
|
|
33
|
-
"@ms-cloudpack/common-types": "^0.34.
|
|
34
|
-
"@ms-cloudpack/common-types-browser": "^0.6.
|
|
32
|
+
"@ms-cloudpack/api-server": "^0.67.11",
|
|
33
|
+
"@ms-cloudpack/common-types": "^0.34.6",
|
|
34
|
+
"@ms-cloudpack/common-types-browser": "^0.6.12",
|
|
35
35
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
36
|
-
"@ms-cloudpack/path-string-parsing": "^1.3.
|
|
36
|
+
"@ms-cloudpack/path-string-parsing": "^1.3.6",
|
|
37
37
|
"@ms-cloudpack/scripts": "^0.0.1",
|
|
38
38
|
"@types/react-refresh": "^0.14.0",
|
|
39
39
|
"classnames": "2.5.1",
|
|
40
|
-
"preact": "10.29.
|
|
40
|
+
"preact": "10.29.8",
|
|
41
41
|
"react": "npm:@preact/compat@18.3.2",
|
|
42
42
|
"react-focus-on": "3.10.2",
|
|
43
43
|
"react-refresh": "patch:react-refresh@npm%3A0.18.0#~/.yarn/patches/react-refresh-npm-0.18.0-5576c3f4a3.patch"
|
|
@@ -1,3 +0,0 @@
|
|
|
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__={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
|
-
//# sourceMappingURL=337.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"337.chunk.js","mappings":";2HAWA,WACA,SAAAA,EAAAC,GACA,UAAAA,EAAAC,QAAA,OAAAD,EAAAC,QACA,IAAAA,EAAAD,EAAAE,OACA,IACA,IAAAC,EAAAH,EAAAI,gBACA,CAAQ,MAAAC,GACR,OAAAL,EAAAM,YAAA,EAAAN,EAAAC,QAAAA,CACA,CACA,QAAAM,EAAA,EAAsBA,EAAAJ,EAAAK,OAAkBD,IAAA,CACxC,IAAAE,EAAAN,EAAAI,GACA,sBAAAE,EACA,OAAAT,EAAAM,YAAA,EAAAN,EAAAC,QAAAA,EAEA,aADAQ,EAAAC,EAAAC,IAAAF,IACA,CACA,IAAAG,EAAAb,EAAAU,GACAA,EAAAH,aAAAN,EAAAM,YAAA,GACAL,GAAA,UAAAW,CACA,CACA,CACA,OAAAZ,EAAAC,QAAAA,CACA,CACA,SAAAY,EAAAC,GACA,OAAAC,EAAAJ,IAAAG,EACA,CAQA,SAAAE,EAAAC,GACA,IAAAC,EAAA,IAAAC,IAIA,OAHAF,EAAAG,QAAA,SAAAC,GACAH,EAAAI,IAAAD,EACA,GACAH,CACA,CACA,SAAAK,EAAAC,EAAAC,GACA,IACA,OAAAD,EAAAC,EACA,CAAQ,MAAApB,GAAA,CACR,CAwBA,SAAAqB,EAAAZ,EAAAa,GACA,IAAArB,EACA,EAAAsB,UAAApB,aAAA,IAAAoB,UAAA,IAAAA,UAAA,GACAxB,EAAA,EA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AAiD,IACxChE,EAAA2E,KAAA,CAAAX,EAAA3F,IACA0B,EAAAvB,IAAAH,EAAA2F,GACA,iBAAA3F,GAAA,OAAAA,EACA,OAAAS,EAAAT,EAAA,aACA,KAAAgB,EACAqF,EAAArG,EAAAiB,OAAAyB,EAAA,WACA,MACA,KAAAxB,EACAmF,EAAArG,EAAAA,KAAA0C,EAAA,SAEA,CACA,EAkQIR,EAAAtB,aAAoBA,CACrB,CArUH,gECKO,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","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 +0,0 @@
|
|
|
1
|
-
export const __webpack_esm_id__=558;export const __webpack_esm_ids__=[558];export const __webpack_esm_modules__={558(e){e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}};
|
|
2
|
-
//# sourceMappingURL=558.chunk.js.map
|
|
File without changes
|