@corva/ui 3.84.0-2 → 3.84.0-3
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/componentsV2/LiveDotIndicator/LiveDotIndicator.js +1 -1
- package/cjs-bundle/componentsV2/LiveDotIndicator/LiveDotIndicator.js.map +1 -1
- package/cjs-bundle/componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js +1 -1
- package/componentsV2/LiveDotIndicator/LiveDotIndicator.d.ts.map +1 -1
- package/componentsV2/LiveDotIndicator/LiveDotIndicator.js +1 -1
- package/componentsV2/LiveDotIndicator/LiveDotIndicator.js.map +1 -1
- package/componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js +1 -1
- package/mcp-server/server.mjs +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("classnames"),t=require("./LiveDotIndicator.scss.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("classnames"),t=require("react"),r=require("./LiveDotIndicator.scss.js"),a=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(e),c={live:r.live,offline:r.offline},o="cubic-bezier(0.455, 0.03, 0.515, 0.955)",s="cubic-bezier(0.215, 0.61, 0.355, 1)",u=[{opacity:.5,easing:o},{opacity:1,easing:o},{opacity:.5}],f=[{transform:"scale(1)",opacity:0,easing:s},{transform:"scale(2)",opacity:.5,easing:s},{transform:"scale(3.5)",opacity:0}];exports.LiveDotIndicator=function(e){var i=e.state,o=e.className,s=e.testId,l=t.useRef(null);return t.useLayoutEffect((function(){var e;if("live"===i&&null!==(e=l.current)&&void 0!==e&&e.animate){var t=[l.current.animate(u,{duration:3250,delay:-400,iterations:1/0}),l.current.animate(f,{duration:3250,iterations:1/0,pseudoElement:"::after"})];return function(){return t.forEach((function(e){return e.cancel()}))}}}),[i]),a.jsx("div",{"data-testid":s,className:n.default(r.root,c[i],o),ref:l})};
|
|
2
2
|
//# sourceMappingURL=LiveDotIndicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveDotIndicator.js","sources":["../../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"sourcesContent":["import classNames from 'classnames';\n\nimport styles from './LiveDotIndicator.scss';\n\nexport type LiveDotIndicatorProps = {\n state: 'live' | 'offline';\n\n className?: string;\n testId?: string;\n};\n\nconst StateToClassMap: Record<LiveDotIndicatorProps['state'], string> = {\n live: styles.live,\n offline: styles.offline,\n};\n\nexport const LiveDotIndicator = ({ state, className, testId }: LiveDotIndicatorProps) => (\n <div\n
|
|
1
|
+
{"version":3,"file":"LiveDotIndicator.js","sources":["../../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { useLayoutEffect, useRef } from 'react';\n\nimport styles from './LiveDotIndicator.scss';\n\nexport type LiveDotIndicatorProps = {\n state: 'live' | 'offline';\n\n className?: string;\n testId?: string;\n};\n\nconst StateToClassMap: Record<LiveDotIndicatorProps['state'], string> = {\n live: styles.live,\n offline: styles.offline,\n};\n\nconst PULSE_DURATION_MS = 3250;\nconst BG_EASING = 'cubic-bezier(0.455, 0.03, 0.515, 0.955)';\nconst RING_EASING = 'cubic-bezier(0.215, 0.61, 0.355, 1)';\n\n// Keyframe easing, not the option: a CSS animation eases each keyframe interval, and these match the CSS it replaces.\nconst BG_KEYFRAMES: Keyframe[] = [\n { opacity: 0.5, easing: BG_EASING },\n { opacity: 1, easing: BG_EASING },\n { opacity: 0.5 },\n];\n\nconst RING_KEYFRAMES: Keyframe[] = [\n { transform: 'scale(1)', opacity: 0, easing: RING_EASING },\n { transform: 'scale(2)', opacity: 0.5, easing: RING_EASING },\n { transform: 'scale(3.5)', opacity: 0 },\n];\n\nexport const LiveDotIndicator = ({ state, className, testId }: LiveDotIndicatorProps) => {\n const dotRef = useRef<HTMLDivElement>(null);\n\n // Web Animations, not CSS keyframes: every React root listens for animation events, and while a\n // document listens, Chromium updates a running CSS animation on the main thread every frame.\n useLayoutEffect(() => {\n // A DOM without Web Animations (jsdom in consumers' tests) renders the dot still, as it renders any page.\n if (state !== 'live' || !dotRef.current?.animate) return undefined;\n\n const animations = [\n dotRef.current.animate(BG_KEYFRAMES, {\n duration: PULSE_DURATION_MS,\n delay: -400,\n iterations: Infinity,\n }),\n dotRef.current.animate(RING_KEYFRAMES, {\n duration: PULSE_DURATION_MS,\n iterations: Infinity,\n pseudoElement: '::after',\n }),\n ];\n\n return () => animations.forEach(animation => animation.cancel());\n }, [state]);\n\n return (\n <div\n data-testid={testId}\n className={classNames(styles.root, StateToClassMap[state], className)}\n ref={dotRef}\n />\n );\n};\n"],"names":["StateToClassMap","live","styles","offline","BG_EASING","RING_EASING","BG_KEYFRAMES","opacity","easing","RING_KEYFRAMES","transform","_ref","state","className","testId","dotRef","useRef","useLayoutEffect","_dotRef$current","current","animate","animations","duration","delay","iterations","Infinity","pseudoElement","forEach","animation","cancel","_jsx","classNames","root","ref"],"mappings":"6QAYMA,EAAkE,CACtEC,KAAMC,EAAOD,KACbE,QAASD,EAAOC,SAIZC,EAAY,0CACZC,EAAc,sCAGdC,EAA2B,CAC/B,CAAEC,QAAS,GAAKC,OAAQJ,GACxB,CAAEG,QAAS,EAAGC,OAAQJ,GACtB,CAAEG,QAAS,KAGPE,EAA6B,CACjC,CAAEC,UAAW,WAAYH,QAAS,EAAGC,OAAQH,GAC7C,CAAEK,UAAW,WAAYH,QAAS,GAAKC,OAAQH,GAC/C,CAAEK,UAAW,aAAcH,QAAS,6BAGN,SAAyDI,GAAA,IAAtDC,IAAAA,MAAOC,IAAAA,UAAWC,IAAAA,OAC7CC,EAASC,SAAuB,MAwBtC,OApBAC,EAAAA,iBAAgB,WAAM,IAAAC,EAEpB,GAAc,SAAVN,GAAqB,QAAAG,EAAAA,EAAOI,eAAP,IAAAD,GAAAA,EAAgBE,QAAzC,CAEA,IAAMC,EAAa,CACjBN,EAAOI,QAAQC,QAAQd,EAAc,CACnCgB,SA5BkB,KA6BlBC,OAAQ,IACRC,WAAYC,MAEdV,EAAOI,QAAQC,QAAQX,EAAgB,CACrCa,SAjCkB,KAkClBE,WAAYC,IACZC,cAAe,aAInB,OAAO,WAAA,OAAML,EAAWM,SAAQ,SAAAC,GAAS,OAAIA,EAAUC,WAAS,CAfE,CAgBpE,GAAG,CAACjB,IAGFkB,EAAAA,IAAA,MAAA,CACE,cAAahB,EACbD,UAAWkB,EAAU,QAAC7B,EAAO8B,KAAMhC,EAAgBY,GAAQC,GAC3DoB,IAAKlB,GAGX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')('.LiveDotIndicator_root__9o2vz{display:inline-block;padding:2px;vertical-align:middle}.LiveDotIndicator_root__9o2vz:before{border-radius:50%;content:"";display:block;height:4px;width:4px}.LiveDotIndicator_live__2lXWs{
|
|
1
|
+
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')('.LiveDotIndicator_root__9o2vz{display:inline-block;padding:2px;vertical-align:middle}.LiveDotIndicator_root__9o2vz:before{border-radius:50%;content:"";display:block;height:4px;width:4px}.LiveDotIndicator_live__2lXWs{isolation:isolate;position:relative}.LiveDotIndicator_live__2lXWs:after,.LiveDotIndicator_live__2lXWs:before{background:var(--palette-success-bright)}.LiveDotIndicator_live__2lXWs:after{border-radius:50%;content:"";height:4px;left:2px;position:absolute;top:2px;width:4px;z-index:-1}.LiveDotIndicator_offline__1W-4D:before{background:var(--palette-background-b-9);box-shadow:0 0 0 2px rgb(from var(--palette-background-b-9) r g b/.4)}'),module.exports={spacing:"8",root:"LiveDotIndicator_root__9o2vz",live:"LiveDotIndicator_live__2lXWs",offline:"LiveDotIndicator_offline__1W-4D"};
|
|
2
2
|
//# sourceMappingURL=LiveDotIndicator.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveDotIndicator.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LiveDotIndicator.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAwBF,eAAO,MAAM,gBAAgB,iCAAkC,qBAAqB,4CAgCnF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"classnames";import e from"./LiveDotIndicator.scss.js";import{jsx as
|
|
1
|
+
import t from"classnames";import{useRef as r,useLayoutEffect as a}from"react";import e from"./LiveDotIndicator.scss.js";import{jsx as i}from"react/jsx-runtime";var n={live:e.live,offline:e.offline},o="cubic-bezier(0.455, 0.03, 0.515, 0.955)",c="cubic-bezier(0.215, 0.61, 0.355, 1)",s=[{opacity:.5,easing:o},{opacity:1,easing:o},{opacity:.5}],f=[{transform:"scale(1)",opacity:0,easing:c},{transform:"scale(2)",opacity:.5,easing:c},{transform:"scale(3.5)",opacity:0}],m=function(o){var c=o.state,m=o.className,u=o.testId,l=r(null);return a((function(){var t;if("live"===c&&null!==(t=l.current)&&void 0!==t&&t.animate){var r=[l.current.animate(s,{duration:3250,delay:-400,iterations:1/0}),l.current.animate(f,{duration:3250,iterations:1/0,pseudoElement:"::after"})];return function(){return r.forEach((function(t){return t.cancel()}))}}}),[c]),i("div",{"data-testid":u,className:t(e.root,n[c],m),ref:l})};export{m as LiveDotIndicator};
|
|
2
2
|
//# sourceMappingURL=LiveDotIndicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveDotIndicator.js","sources":["../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"sourcesContent":["import classNames from 'classnames';\n\nimport styles from './LiveDotIndicator.scss';\n\nexport type LiveDotIndicatorProps = {\n state: 'live' | 'offline';\n\n className?: string;\n testId?: string;\n};\n\nconst StateToClassMap: Record<LiveDotIndicatorProps['state'], string> = {\n live: styles.live,\n offline: styles.offline,\n};\n\nexport const LiveDotIndicator = ({ state, className, testId }: LiveDotIndicatorProps) => (\n <div\n
|
|
1
|
+
{"version":3,"file":"LiveDotIndicator.js","sources":["../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { useLayoutEffect, useRef } from 'react';\n\nimport styles from './LiveDotIndicator.scss';\n\nexport type LiveDotIndicatorProps = {\n state: 'live' | 'offline';\n\n className?: string;\n testId?: string;\n};\n\nconst StateToClassMap: Record<LiveDotIndicatorProps['state'], string> = {\n live: styles.live,\n offline: styles.offline,\n};\n\nconst PULSE_DURATION_MS = 3250;\nconst BG_EASING = 'cubic-bezier(0.455, 0.03, 0.515, 0.955)';\nconst RING_EASING = 'cubic-bezier(0.215, 0.61, 0.355, 1)';\n\n// Keyframe easing, not the option: a CSS animation eases each keyframe interval, and these match the CSS it replaces.\nconst BG_KEYFRAMES: Keyframe[] = [\n { opacity: 0.5, easing: BG_EASING },\n { opacity: 1, easing: BG_EASING },\n { opacity: 0.5 },\n];\n\nconst RING_KEYFRAMES: Keyframe[] = [\n { transform: 'scale(1)', opacity: 0, easing: RING_EASING },\n { transform: 'scale(2)', opacity: 0.5, easing: RING_EASING },\n { transform: 'scale(3.5)', opacity: 0 },\n];\n\nexport const LiveDotIndicator = ({ state, className, testId }: LiveDotIndicatorProps) => {\n const dotRef = useRef<HTMLDivElement>(null);\n\n // Web Animations, not CSS keyframes: every React root listens for animation events, and while a\n // document listens, Chromium updates a running CSS animation on the main thread every frame.\n useLayoutEffect(() => {\n // A DOM without Web Animations (jsdom in consumers' tests) renders the dot still, as it renders any page.\n if (state !== 'live' || !dotRef.current?.animate) return undefined;\n\n const animations = [\n dotRef.current.animate(BG_KEYFRAMES, {\n duration: PULSE_DURATION_MS,\n delay: -400,\n iterations: Infinity,\n }),\n dotRef.current.animate(RING_KEYFRAMES, {\n duration: PULSE_DURATION_MS,\n iterations: Infinity,\n pseudoElement: '::after',\n }),\n ];\n\n return () => animations.forEach(animation => animation.cancel());\n }, [state]);\n\n return (\n <div\n data-testid={testId}\n className={classNames(styles.root, StateToClassMap[state], className)}\n ref={dotRef}\n />\n );\n};\n"],"names":["StateToClassMap","live","styles","offline","BG_EASING","RING_EASING","BG_KEYFRAMES","opacity","easing","RING_KEYFRAMES","transform","LiveDotIndicator","_ref","state","className","testId","dotRef","useRef","useLayoutEffect","_dotRef$current","current","animate","animations","duration","delay","iterations","Infinity","pseudoElement","forEach","animation","cancel","_jsx","classNames","root","ref"],"mappings":"gKAYA,IAAMA,EAAkE,CACtEC,KAAMC,EAAOD,KACbE,QAASD,EAAOC,SAIZC,EAAY,0CACZC,EAAc,sCAGdC,EAA2B,CAC/B,CAAEC,QAAS,GAAKC,OAAQJ,GACxB,CAAEG,QAAS,EAAGC,OAAQJ,GACtB,CAAEG,QAAS,KAGPE,EAA6B,CACjC,CAAEC,UAAW,WAAYH,QAAS,EAAGC,OAAQH,GAC7C,CAAEK,UAAW,WAAYH,QAAS,GAAKC,OAAQH,GAC/C,CAAEK,UAAW,aAAcH,QAAS,IAGzBI,EAAmB,SAAyDC,GAAA,IAAtDC,IAAAA,MAAOC,IAAAA,UAAWC,IAAAA,OAC7CC,EAASC,EAAuB,MAwBtC,OApBAC,GAAgB,WAAM,IAAAC,EAEpB,GAAc,SAAVN,GAAqB,QAAAG,EAAAA,EAAOI,eAAP,IAAAD,GAAAA,EAAgBE,QAAzC,CAEA,IAAMC,EAAa,CACjBN,EAAOI,QAAQC,QAAQf,EAAc,CACnCiB,SA5BkB,KA6BlBC,OAAQ,IACRC,WAAYC,MAEdV,EAAOI,QAAQC,QAAQZ,EAAgB,CACrCc,SAjCkB,KAkClBE,WAAYC,IACZC,cAAe,aAInB,OAAO,WAAA,OAAML,EAAWM,SAAQ,SAAAC,GAAS,OAAIA,EAAUC,WAAS,CAfE,CAgBpE,GAAG,CAACjB,IAGFkB,EAAA,MAAA,CACE,cAAahB,EACbD,UAAWkB,EAAW9B,EAAO+B,KAAMjC,EAAgBa,GAAQC,GAC3DoB,IAAKlB,GAGX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={spacing:"8",root:"LiveDotIndicator_root__9o2vz",live:"LiveDotIndicator_live__2lXWs",offline:"LiveDotIndicator_offline__1W-4D"};o('.LiveDotIndicator_root__9o2vz{display:inline-block;padding:2px;vertical-align:middle}.LiveDotIndicator_root__9o2vz:before{border-radius:50%;content:"";display:block;height:4px;width:4px}.LiveDotIndicator_live__2lXWs{isolation:isolate;position:relative}.LiveDotIndicator_live__2lXWs:after,.LiveDotIndicator_live__2lXWs:before{background:var(--palette-success-bright)}.LiveDotIndicator_live__2lXWs:after{border-radius:50%;content:"";height:4px;left:2px;position:absolute;top:2px;width:4px;z-index:-1}.LiveDotIndicator_offline__1W-4D:before{background:var(--palette-background-b-9);box-shadow:0 0 0 2px rgb(from var(--palette-background-b-9) r g b/.4)}');export{e as default};
|
|
2
2
|
//# sourceMappingURL=LiveDotIndicator.scss.js.map
|
package/mcp-server/server.mjs
CHANGED