@fluentui-copilot/react-morse-code 0.0.0-nightly-20250507-0406-4976ea07.1 → 0.0.0-nightly-20250508-0405-6eff905d.1
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/CHANGELOG.json +3 -3
- package/CHANGELOG.md +4 -4
- package/lib/components/MorseCodeFallback.js +0 -8
- package/lib/components/MorseCodeFallback.js.map +1 -1
- package/lib-commonjs/components/MorseCodeFallback.js +0 -8
- package/lib-commonjs/components/MorseCodeFallback.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-morse-code",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-morse-code_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Thu, 08 May 2025 04:12:41 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-morse-code_v0.0.0-nightly-20250508-0405-6eff905d.1",
|
|
7
|
+
"version": "0.0.0-nightly-20250508-0405-6eff905d.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-morse-code
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 08 May 2025 04:12:41 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-nightly-
|
|
7
|
+
## [0.0.0-nightly-20250508-0405-6eff905d.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-morse-code_v0.0.0-nightly-20250508-0405-6eff905d.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-morse-code_v0.0.6..@fluentui-copilot/react-morse-code_v0.0.0-nightly-
|
|
9
|
+
Thu, 08 May 2025 04:12:41 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-morse-code_v0.0.6..@fluentui-copilot/react-morse-code_v0.0.0-nightly-20250508-0405-6eff905d.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
@@ -2,8 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { mergeClasses } from '@fluentui/react-components';
|
|
3
3
|
import { morseCode } from '@fluentui-copilot/morse-code';
|
|
4
4
|
import { useMorseCodeStyles } from './MorseCode.styles';
|
|
5
|
-
import { hasWebkitCanvas } from '@fluentui-contrib/houdini-utils';
|
|
6
|
-
const IS_WEBKIT = hasWebkitCanvas();
|
|
7
5
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
8
6
|
const ON_COMPLETE_NOOP = () => {};
|
|
9
7
|
export const MorseCodeFallback = () => {
|
|
@@ -12,17 +10,11 @@ export const MorseCodeFallback = () => {
|
|
|
12
10
|
let animControls;
|
|
13
11
|
if (node) {
|
|
14
12
|
animControls = morseCode(node);
|
|
15
|
-
if (IS_WEBKIT && animControls.canvas) {
|
|
16
|
-
animControls.canvas.setAttribute('style', '');
|
|
17
|
-
node.appendChild(animControls.canvas);
|
|
18
|
-
}
|
|
19
13
|
animControls.play(ON_COMPLETE_NOOP);
|
|
20
14
|
} else {
|
|
21
15
|
if (animControls) {
|
|
22
|
-
var _animControls_canvas;
|
|
23
16
|
animControls.stop();
|
|
24
17
|
animControls.cleanup();
|
|
25
|
-
IS_WEBKIT && ((_animControls_canvas = animControls.canvas) === null || _animControls_canvas === void 0 ? void 0 : _animControls_canvas.remove());
|
|
26
18
|
animControls = undefined;
|
|
27
19
|
}
|
|
28
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MorseCodeFallback.tsx"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { morseCode } from '@fluentui-copilot/morse-code';\nimport { useMorseCodeStyles } from './MorseCode.styles';\
|
|
1
|
+
{"version":3,"sources":["MorseCodeFallback.tsx"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { morseCode } from '@fluentui-copilot/morse-code';\nimport { useMorseCodeStyles } from './MorseCode.styles';\n\nimport type { MorseCodeProps } from './MorseCode.types';\n\ntype FallbackAnimation = ReturnType<typeof morseCode>;\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst ON_COMPLETE_NOOP = () => {};\n\nexport const MorseCodeFallback: React.FC<MorseCodeProps> = () => {\n const morseCodeStyles = useMorseCodeStyles();\n\n const targetRef = React.useCallback((node: HTMLElement | null) => {\n let animControls: FallbackAnimation | undefined;\n\n if (node) {\n animControls = morseCode(node);\n animControls.play(ON_COMPLETE_NOOP);\n } else {\n if (animControls) {\n animControls.stop();\n animControls.cleanup();\n animControls = undefined;\n }\n }\n }, []);\n\n return (\n <div className={morseCodeStyles.wrapper}>\n <div ref={targetRef} className={mergeClasses('fai-MorseCode', 'fai-MorseCodeFallback', morseCodeStyles.base)} />\n </div>\n );\n};\n"],"names":["React","mergeClasses","morseCode","useMorseCodeStyles","ON_COMPLETE_NOOP","MorseCodeFallback","morseCodeStyles","targetRef","useCallback","node","animControls","play","stop","cleanup","undefined","div","className","wrapper","ref","base"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,SAAS,QAAQ,+BAA+B;AACzD,SAASC,kBAAkB,QAAQ,qBAAqB;AAMxD,gEAAgE;AAChE,MAAMC,mBAAmB,KAAO;AAEhC,OAAO,MAAMC,oBAA8C;IACzD,MAAMC,kBAAkBH;IAExB,MAAMI,YAAYP,MAAMQ,WAAW,CAAC,CAACC;QACnC,IAAIC;QAEJ,IAAID,MAAM;YACRC,eAAeR,UAAUO;YACzBC,aAAaC,IAAI,CAACP;QACpB,OAAO;YACL,IAAIM,cAAc;gBAChBA,aAAaE,IAAI;gBACjBF,aAAaG,OAAO;gBACpBH,eAAeI;YACjB;QACF;IACF,GAAG,EAAE;IAEL,qBACE,oBAACC;QAAIC,WAAWV,gBAAgBW,OAAO;qBACrC,oBAACF;QAAIG,KAAKX;QAAWS,WAAWf,aAAa,iBAAiB,yBAAyBK,gBAAgBa,IAAI;;AAGjH,EAAE"}
|
|
@@ -13,8 +13,6 @@ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
|
13
13
|
const _reactcomponents = require("@fluentui/react-components");
|
|
14
14
|
const _morsecode = require("@fluentui-copilot/morse-code");
|
|
15
15
|
const _MorseCodestyles = require("./MorseCode.styles");
|
|
16
|
-
const _houdiniutils = require("@fluentui-contrib/houdini-utils");
|
|
17
|
-
const IS_WEBKIT = (0, _houdiniutils.hasWebkitCanvas)();
|
|
18
16
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
19
17
|
const ON_COMPLETE_NOOP = ()=>{};
|
|
20
18
|
const MorseCodeFallback = ()=>{
|
|
@@ -23,17 +21,11 @@ const MorseCodeFallback = ()=>{
|
|
|
23
21
|
let animControls;
|
|
24
22
|
if (node) {
|
|
25
23
|
animControls = (0, _morsecode.morseCode)(node);
|
|
26
|
-
if (IS_WEBKIT && animControls.canvas) {
|
|
27
|
-
animControls.canvas.setAttribute('style', '');
|
|
28
|
-
node.appendChild(animControls.canvas);
|
|
29
|
-
}
|
|
30
24
|
animControls.play(ON_COMPLETE_NOOP);
|
|
31
25
|
} else {
|
|
32
26
|
if (animControls) {
|
|
33
|
-
var _animControls_canvas;
|
|
34
27
|
animControls.stop();
|
|
35
28
|
animControls.cleanup();
|
|
36
|
-
IS_WEBKIT && ((_animControls_canvas = animControls.canvas) === null || _animControls_canvas === void 0 ? void 0 : _animControls_canvas.remove());
|
|
37
29
|
animControls = undefined;
|
|
38
30
|
}
|
|
39
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MorseCodeFallback.tsx"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { morseCode } from '@fluentui-copilot/morse-code';\nimport { useMorseCodeStyles } from './MorseCode.styles';\
|
|
1
|
+
{"version":3,"sources":["MorseCodeFallback.tsx"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { morseCode } from '@fluentui-copilot/morse-code';\nimport { useMorseCodeStyles } from './MorseCode.styles';\n\nimport type { MorseCodeProps } from './MorseCode.types';\n\ntype FallbackAnimation = ReturnType<typeof morseCode>;\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst ON_COMPLETE_NOOP = () => {};\n\nexport const MorseCodeFallback: React.FC<MorseCodeProps> = () => {\n const morseCodeStyles = useMorseCodeStyles();\n\n const targetRef = React.useCallback((node: HTMLElement | null) => {\n let animControls: FallbackAnimation | undefined;\n\n if (node) {\n animControls = morseCode(node);\n animControls.play(ON_COMPLETE_NOOP);\n } else {\n if (animControls) {\n animControls.stop();\n animControls.cleanup();\n animControls = undefined;\n }\n }\n }, []);\n\n return (\n <div className={morseCodeStyles.wrapper}>\n <div ref={targetRef} className={mergeClasses('fai-MorseCode', 'fai-MorseCodeFallback', morseCodeStyles.base)} />\n </div>\n );\n};\n"],"names":["MorseCodeFallback","ON_COMPLETE_NOOP","morseCodeStyles","useMorseCodeStyles","targetRef","React","useCallback","animControls","node","morseCode","createElement","div","className","wrapper","ref","mergeClasses","base"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;iCACM;2BACH;iCACS;AAMnC,gEAAgE;AAChE,MAAMC,mBAAmB,KAAO;AAEzB,MAAMD,oBAA8C;UACzDE,kBAAMA,IAAAA,mCAAkBC;UAExBC,YAAMA,OAAYC,WAAMC,CAAAA,CAAAA;YACtBC;YAEAC,MAAIA;2BACFD,IAAAA,oBAAeE,EAAAA;yBACfF,IAAAA,CAAAA;eACF;8BACMA;6BACFA,IAAAA;6BACAA,OAAAA;+BACAA;;;OAGN,EAAG;WAEH,WAAA,GAAAF,OACEK,aAAA,CAAA,OAACC;mBAAIC,gBAAWV,OAAgBW;4BAC9BH,aAAA,CAAA,OAACC;aAAIG;mBAAgBF,IAAAA,6BAAWG,EAAAA,iBAAa,yBAAiBb,gBAAyBA,IAAgBc;;AAG7G"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-morse-code",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250508-0405-6eff905d.1",
|
|
4
4
|
"description": "A Fluent AI package",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-contrib/houdini-utils": "0.3.
|
|
16
|
-
"@fluentui-copilot/morse-code": "^0.0.0-nightly-
|
|
15
|
+
"@fluentui-contrib/houdini-utils": "0.3.5",
|
|
16
|
+
"@fluentui-copilot/morse-code": "^0.0.0-nightly-20250508-0405-6eff905d.1",
|
|
17
17
|
"@swc/helpers": "^0.5.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|