@corva/ui 3.75.0-21 → 3.75.0-22
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/cjs-bundle/components/CommentLoader.js +1 -1
- package/cjs-bundle/components/CommentLoader.js.map +1 -1
- package/components/CommentLoader.d.ts +6 -5
- package/components/CommentLoader.js +1 -1
- package/components/CommentLoader.js.map +1 -1
- package/components/__tests__/CommentLoader.test.d.ts +2 -0
- package/components/__tests__/CommentLoader.test.d.ts.map +1 -0
- package/mcp-server/server.mjs +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var e=require("react"),r=require("prop-types"),o=require("@material-ui/core/styles"),n=require("./LoadingIndicator/LoadingIndicator.js"),t=require("./CommentWrapper.js"),a=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(r),u={loadingIndicatorWrapper:{padding:"0 20px 0 0"}},c={showOnMount:s.default.bool,spaceAround:s.default.bool,classes:s.default.shape({}).isRequired},d=e.forwardRef((function(r,o){var i=r.showOnMount,s=void 0!==i&&i,c=r.spaceAround,d=void 0!==c&&c,l=r.classes,p=e.useRef(null),f=e.useRef(s),m=e.useCallback((function(){p.current.scrollIntoView({block:"end"})}),[]);return e.useImperativeHandle(o,(function(){return{commentLoaderEl:p,showIntoView:m}}),[m]),e.useLayoutEffect((function(){f.current&&m()}),[m]),a.jsx("div",{ref:p,children:a.jsx(t,{spaceAround:d,isLoader:!0,className:l.commentWrapper,children:a.jsx("div",{style:u.loadingIndicatorWrapper,children:a.jsx(n,{fullscreen:!1,size:30})})})})}));d.propTypes=c;var l=o.withStyles({commentWrapper:{width:"calc(100% - 28px)"}})(e.memo(d));module.exports=l;
|
|
2
2
|
//# sourceMappingURL=CommentLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentLoader.js","sources":["../../../src/components/CommentLoader.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"CommentLoader.js","sources":["../../../src/components/CommentLoader.js"],"sourcesContent":["import { forwardRef, memo, useCallback, useImperativeHandle, useLayoutEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport LoadingIndicator from '~components/LoadingIndicator';\nimport CommentWrapper from '~components/CommentWrapper';\n\nconst styles = {\n // NOTE: Centers the LoadingIndicator\n loadingIndicatorWrapper: { padding: '0 20px 0 0' },\n};\n\nconst muiStyles = {\n commentWrapper: {\n width: 'calc(100% - 28px)', // NOTE: 28 === settings icon size.\n },\n};\n\nconst propTypes = {\n showOnMount: PropTypes.bool,\n spaceAround: PropTypes.bool,\n\n classes: PropTypes.shape({}).isRequired,\n};\n\nconst CommentLoader = forwardRef(\n /** @param {PropTypes.InferProps<typeof propTypes>} props */ function CommentLoader(\n { showOnMount = false, spaceAround = false, classes },\n ref\n ) {\n const commentLoaderEl = useRef(null);\n const initialShowOnMount = useRef(showOnMount);\n const showIntoView = useCallback(() => {\n commentLoaderEl.current.scrollIntoView({ block: 'end' });\n }, []);\n\n useImperativeHandle(ref, () => ({ commentLoaderEl, showIntoView }), [showIntoView]);\n\n useLayoutEffect(() => {\n if (initialShowOnMount.current) {\n showIntoView();\n }\n }, [showIntoView]);\n\n return (\n <div ref={commentLoaderEl}>\n <CommentWrapper spaceAround={spaceAround} isLoader className={classes.commentWrapper}>\n <div style={styles.loadingIndicatorWrapper}>\n <LoadingIndicator fullscreen={false} size={30} />\n </div>\n </CommentWrapper>\n </div>\n );\n }\n);\n\nCommentLoader.propTypes = propTypes;\n\nexport default withStyles(muiStyles)(memo(CommentLoader));\n"],"names":["styles","loadingIndicatorWrapper","padding","propTypes","showOnMount","PropTypes","bool","spaceAround","classes","shape","isRequired","CommentLoader","forwardRef","ref","_ref$showOnMount","_ref","_ref$spaceAround","commentLoaderEl","useRef","initialShowOnMount","showIntoView","useCallback","current","scrollIntoView","block","useImperativeHandle","useLayoutEffect","_jsx","children","CommentWrapper","isLoader","className","commentWrapper","jsx","style","LoadingIndicator","fullscreen","size","withStyles","width","memo"],"mappings":"ySAOMA,EAAS,CAEbC,wBAAyB,CAAEC,QAAS,eAShCC,EAAY,CAChBC,YAAaC,EAAS,QAACC,KACvBC,YAAaF,EAAS,QAACC,KAEvBE,QAASH,EAAS,QAACI,MAAM,CAAA,GAAIC,YAGzBC,EAAgBC,EAAAA,YACyC,SAE3DC,EAAAA,GACA,IAAAC,EAAAC,EAFEX,YAAAA,cAAmBU,EAAAE,EAAAD,EAAER,YAAAA,cAAmBS,EAAER,IAAAA,QAGtCS,EAAkBC,SAAO,MACzBC,EAAqBD,SAAOd,GAC5BgB,EAAeC,EAAAA,aAAY,WAC/BJ,EAAgBK,QAAQC,eAAe,CAAEC,MAAO,OACjD,GAAE,IAUH,OARAC,EAAmBA,oBAACZ,GAAK,WAAA,MAAO,CAAEI,gBAAAA,EAAiBG,aAAAA,EAAc,GAAG,CAACA,IAErEM,EAAAA,iBAAgB,WACVP,EAAmBG,SACrBF,GAEJ,GAAG,CAACA,IAGFO,EAAAA,IAAA,MAAA,CAAKd,IAAKI,EAAgBW,SACxBD,MAACE,EAAc,CAACtB,YAAaA,EAAauB,UAAQ,EAACC,UAAWvB,EAAQwB,eAAeJ,SACnFD,EAAAM,IAAA,MAAA,CAAKC,MAAOlC,EAAOC,wBAAwB2B,SACzCD,MAACQ,EAAgB,CAACC,YAAY,EAAOC,KAAM,UAKrD,IAGF1B,EAAcR,UAAYA,EAE1B,IAAemC,EAAAA,EAAAA,WA9CG,CAChBN,eAAgB,CACdO,MAAO,sBA4CID,CAAsBE,EAAIA,KAAC7B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
declare const _default: import("react").ComponentType<Pick<
|
|
2
|
+
declare const _default: import("react").ComponentType<Pick<PropTypes.InferPropsInner<Pick<{
|
|
3
3
|
showOnMount: PropTypes.Requireable<boolean>;
|
|
4
4
|
spaceAround: PropTypes.Requireable<boolean>;
|
|
5
5
|
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
|
|
6
|
-
}
|
|
7
|
-
showOnMount
|
|
8
|
-
spaceAround
|
|
9
|
-
|
|
6
|
+
}, "classes">> & Partial<PropTypes.InferPropsInner<Pick<{
|
|
7
|
+
showOnMount: PropTypes.Requireable<boolean>;
|
|
8
|
+
spaceAround: PropTypes.Requireable<boolean>;
|
|
9
|
+
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
|
|
10
|
+
}, "showOnMount" | "spaceAround">>> & import("react").RefAttributes<any>, "showOnMount" | "spaceAround" | keyof import("react").RefAttributes<any>> & import("@material-ui/styles").StyledComponentProps<"commentWrapper">>;
|
|
10
11
|
export default _default;
|
|
11
12
|
//# sourceMappingURL=CommentLoader.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r
|
|
1
|
+
import{forwardRef as r,useRef as o,useCallback as e,useImperativeHandle as n,useLayoutEffect as i,memo as t}from"react";import a from"prop-types";import{withStyles as c}from"@material-ui/core/styles";import p from"./LoadingIndicator/LoadingIndicator.js";import s from"./CommentWrapper.js";import{jsx as d}from"react/jsx-runtime";var l={loadingIndicatorWrapper:{padding:"0 20px 0 0"}},m={showOnMount:a.bool,spaceAround:a.bool,classes:a.shape({}).isRequired},u=r((function(r,t){var a=r.showOnMount,c=void 0!==a&&a,m=r.spaceAround,u=void 0!==m&&m,f=r.classes,h=o(null),v=o(c),w=e((function(){h.current.scrollIntoView({block:"end"})}),[]);return n(t,(function(){return{commentLoaderEl:h,showIntoView:w}}),[w]),i((function(){v.current&&w()}),[w]),d("div",{ref:h,children:d(s,{spaceAround:u,isLoader:!0,className:f.commentWrapper,children:d("div",{style:l.loadingIndicatorWrapper,children:d(p,{fullscreen:!1,size:30})})})})}));u.propTypes=m;var f=c({commentWrapper:{width:"calc(100% - 28px)"}})(t(u));export{f as default};
|
|
2
2
|
//# sourceMappingURL=CommentLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentLoader.js","sources":["../../src/components/CommentLoader.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"CommentLoader.js","sources":["../../src/components/CommentLoader.js"],"sourcesContent":["import { forwardRef, memo, useCallback, useImperativeHandle, useLayoutEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport LoadingIndicator from '~components/LoadingIndicator';\nimport CommentWrapper from '~components/CommentWrapper';\n\nconst styles = {\n // NOTE: Centers the LoadingIndicator\n loadingIndicatorWrapper: { padding: '0 20px 0 0' },\n};\n\nconst muiStyles = {\n commentWrapper: {\n width: 'calc(100% - 28px)', // NOTE: 28 === settings icon size.\n },\n};\n\nconst propTypes = {\n showOnMount: PropTypes.bool,\n spaceAround: PropTypes.bool,\n\n classes: PropTypes.shape({}).isRequired,\n};\n\nconst CommentLoader = forwardRef(\n /** @param {PropTypes.InferProps<typeof propTypes>} props */ function CommentLoader(\n { showOnMount = false, spaceAround = false, classes },\n ref\n ) {\n const commentLoaderEl = useRef(null);\n const initialShowOnMount = useRef(showOnMount);\n const showIntoView = useCallback(() => {\n commentLoaderEl.current.scrollIntoView({ block: 'end' });\n }, []);\n\n useImperativeHandle(ref, () => ({ commentLoaderEl, showIntoView }), [showIntoView]);\n\n useLayoutEffect(() => {\n if (initialShowOnMount.current) {\n showIntoView();\n }\n }, [showIntoView]);\n\n return (\n <div ref={commentLoaderEl}>\n <CommentWrapper spaceAround={spaceAround} isLoader className={classes.commentWrapper}>\n <div style={styles.loadingIndicatorWrapper}>\n <LoadingIndicator fullscreen={false} size={30} />\n </div>\n </CommentWrapper>\n </div>\n );\n }\n);\n\nCommentLoader.propTypes = propTypes;\n\nexport default withStyles(muiStyles)(memo(CommentLoader));\n"],"names":["styles","loadingIndicatorWrapper","padding","propTypes","showOnMount","PropTypes","bool","spaceAround","classes","shape","isRequired","CommentLoader","forwardRef","ref","_ref$showOnMount","_ref","_ref$spaceAround","commentLoaderEl","useRef","initialShowOnMount","showIntoView","useCallback","current","scrollIntoView","block","useImperativeHandle","useLayoutEffect","_jsx","children","CommentWrapper","isLoader","className","commentWrapper","style","LoadingIndicator","fullscreen","size","withStyles","width","memo"],"mappings":"yUAOA,IAAMA,EAAS,CAEbC,wBAAyB,CAAEC,QAAS,eAShCC,EAAY,CAChBC,YAAaC,EAAUC,KACvBC,YAAaF,EAAUC,KAEvBE,QAASH,EAAUI,MAAM,CAAA,GAAIC,YAGzBC,EAAgBC,GACyC,SAE3DC,EAAAA,GACA,IAAAC,EAAAC,EAFEX,YAAAA,cAAmBU,EAAAE,EAAAD,EAAER,YAAAA,cAAmBS,EAAER,IAAAA,QAGtCS,EAAkBC,EAAO,MACzBC,EAAqBD,EAAOd,GAC5BgB,EAAeC,GAAY,WAC/BJ,EAAgBK,QAAQC,eAAe,CAAEC,MAAO,OACjD,GAAE,IAUH,OARAC,EAAoBZ,GAAK,WAAA,MAAO,CAAEI,gBAAAA,EAAiBG,aAAAA,EAAc,GAAG,CAACA,IAErEM,GAAgB,WACVP,EAAmBG,SACrBF,GAEJ,GAAG,CAACA,IAGFO,EAAA,MAAA,CAAKd,IAAKI,EAAgBW,SACxBD,EAACE,EAAc,CAACtB,YAAaA,EAAauB,UAAQ,EAACC,UAAWvB,EAAQwB,eAAeJ,SACnFD,EAAA,MAAA,CAAKM,MAAOjC,EAAOC,wBAAwB2B,SACzCD,EAACO,EAAgB,CAACC,YAAY,EAAOC,KAAM,UAKrD,IAGFzB,EAAcR,UAAYA,EAE1B,IAAekC,EAAAA,EA9CG,CAChBL,eAAgB,CACdM,MAAO,sBA4CID,CAAsBE,EAAK5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentLoader.test.d.ts","sourceRoot":"","sources":["../../../src/components/__tests__/CommentLoader.test.js"],"names":[],"mappings":""}
|
package/mcp-server/server.mjs
CHANGED