@fluentui-copilot/react-response-count 0.2.14-hotfix.1 → 0.2.14-hotfix.2
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 +4 -4
- package/CHANGELOG.md +5 -5
- package/lib/ResponseCount.js +1 -0
- package/lib/components/ResponseCount/ResponseCount.js +5 -4
- package/lib/components/ResponseCount/ResponseCount.types.js +2 -1
- package/lib/components/ResponseCount/index.js +1 -0
- package/lib/components/ResponseCount/renderResponseCount.js +8 -9
- package/lib/components/ResponseCount/useResponseCount.js +23 -19
- package/lib/components/ResponseCount/useResponseCountStyles.styles.raw.js +38 -34
- package/lib/index.js +1 -0
- package/lib-commonjs/ResponseCount.js +1 -0
- package/lib-commonjs/components/ResponseCount/ResponseCount.js +1 -1
- package/lib-commonjs/components/ResponseCount/ResponseCount.js.map +1 -1
- package/lib-commonjs/components/ResponseCount/ResponseCount.types.js +1 -0
- package/lib-commonjs/components/ResponseCount/index.js +1 -0
- package/lib-commonjs/components/ResponseCount/renderResponseCount.js +1 -1
- package/lib-commonjs/components/ResponseCount/renderResponseCount.js.map +1 -1
- package/lib-commonjs/components/ResponseCount/useResponseCount.js +1 -1
- package/lib-commonjs/components/ResponseCount/useResponseCount.js.map +1 -1
- package/lib-commonjs/components/ResponseCount/useResponseCountStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/ResponseCount/useResponseCountStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/index.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-response-count",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-response-count_v0.2.14-hotfix.
|
|
7
|
-
"version": "0.2.14-hotfix.
|
|
5
|
+
"date": "Fri, 19 Sep 2025 15:10:20 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-response-count_v0.2.14-hotfix.2",
|
|
7
|
+
"version": "0.2.14-hotfix.2",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
11
11
|
"author": "hochelmartin@gmail.com",
|
|
12
12
|
"package": "@fluentui-copilot/react-response-count",
|
|
13
13
|
"commit": "3e4ebe676646c4c4346dbbab83511f963ffefd85",
|
|
14
|
-
"comment": "release: prepare hotfix 0.26.2-hotfix.
|
|
14
|
+
"comment": "release: prepare hotfix 0.26.2-hotfix.2"
|
|
15
15
|
}
|
|
16
16
|
]
|
|
17
17
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-response-count
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 19 Sep 2025 15:10:20 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.2.14-hotfix.
|
|
7
|
+
## [0.2.14-hotfix.2](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-response-count_v0.2.14-hotfix.2)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-response-count_v0.2.14..@fluentui-copilot/react-response-count_v0.2.14-hotfix.
|
|
9
|
+
Fri, 19 Sep 2025 15:10:20 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-response-count_v0.2.14..@fluentui-copilot/react-response-count_v0.2.14-hotfix.2)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
- release: prepare hotfix 0.26.2-hotfix.
|
|
14
|
+
- release: prepare hotfix 0.26.2-hotfix.2 ([PR #3284](https://github.com/microsoft/fluentai/pull/3284) by hochelmartin@gmail.com)
|
|
15
15
|
|
|
16
16
|
## [0.2.14](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-response-count_v0.2.14)
|
|
17
17
|
|
package/lib/ResponseCount.js
CHANGED
|
@@ -3,9 +3,10 @@ import { useResponseCount_unstable } from './useResponseCount';
|
|
|
3
3
|
import { renderResponseCount_unstable } from './renderResponseCount';
|
|
4
4
|
import { useResponseCountStyles_unstable } from './useResponseCountStyles.styles';
|
|
5
5
|
// ResponseCount component - TODO: add more docs
|
|
6
|
-
export const ResponseCount = /*#__PURE__*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export const ResponseCount = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
7
|
+
const state = useResponseCount_unstable(props, ref);
|
|
8
|
+
useResponseCountStyles_unstable(state);
|
|
9
|
+
return renderResponseCount_unstable(state);
|
|
10
10
|
});
|
|
11
11
|
ResponseCount.displayName = 'ResponseCount';
|
|
12
|
+
//# sourceMappingURL=ResponseCount.js.map
|
|
@@ -2,3 +2,4 @@ export { ResponseCount } from './ResponseCount';
|
|
|
2
2
|
export { renderResponseCount_unstable } from './renderResponseCount';
|
|
3
3
|
export { useResponseCount_unstable } from './useResponseCount';
|
|
4
4
|
export { responseCountClassNames, useResponseCountStyles_unstable } from './useResponseCountStyles.styles';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
2
|
import { assertSlots } from '@fluentui/react-components';
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of ResponseCount
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
]
|
|
12
|
-
});
|
|
5
|
+
*/
|
|
6
|
+
export const renderResponseCount_unstable = state => {
|
|
7
|
+
assertSlots(state);
|
|
8
|
+
return /*#__PURE__*/_jsxs(state.root, {
|
|
9
|
+
children: [state.indicator && /*#__PURE__*/_jsx(state.indicator, {}), state.root.children]
|
|
10
|
+
});
|
|
13
11
|
};
|
|
12
|
+
//# sourceMappingURL=renderResponseCount.js.map
|
|
@@ -8,23 +8,27 @@ import { getIntrinsicElementProps, slot } from '@fluentui/react-components';
|
|
|
8
8
|
*
|
|
9
9
|
* @param props - props from this instance of ResponseCount
|
|
10
10
|
* @param ref - reference to root HTMLElement of ResponseCount
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
*/
|
|
12
|
+
export const useResponseCount_unstable = (props, ref) => {
|
|
13
|
+
const {
|
|
14
|
+
status
|
|
15
|
+
} = props;
|
|
16
|
+
return {
|
|
17
|
+
status,
|
|
18
|
+
components: {
|
|
19
|
+
root: 'span',
|
|
20
|
+
indicator: 'span'
|
|
21
|
+
},
|
|
22
|
+
root: slot.always(getIntrinsicElementProps('span', {
|
|
23
|
+
ref,
|
|
24
|
+
...props
|
|
25
|
+
}), {
|
|
26
|
+
elementType: 'span'
|
|
27
|
+
}),
|
|
28
|
+
indicator: slot.optional(props.indicator, {
|
|
29
|
+
elementType: 'span',
|
|
30
|
+
renderByDefault: true
|
|
31
|
+
})
|
|
32
|
+
};
|
|
30
33
|
};
|
|
34
|
+
//# sourceMappingURL=useResponseCount.js.map
|
|
@@ -1,44 +1,48 @@
|
|
|
1
1
|
import { makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';
|
|
2
2
|
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
3
|
export const responseCountClassNames = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
root: 'fai-ResponseCount',
|
|
5
|
+
indicator: 'fai-ResponseCount__indicator'
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Styles for the root slot
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
9
|
+
*/
|
|
10
|
+
const useStyles = makeStyles({
|
|
11
|
+
root: {
|
|
12
|
+
display: 'inline-flex',
|
|
13
|
+
flexDirection: 'row',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
gap: tokens.spacingHorizontalXS,
|
|
16
|
+
...typographyStyles.caption2,
|
|
17
|
+
color: tokens.colorNeutralForeground4
|
|
18
|
+
},
|
|
19
|
+
indicator: {
|
|
20
|
+
display: 'inline-block',
|
|
21
|
+
width: '8px',
|
|
22
|
+
height: '8px',
|
|
23
|
+
borderRadius: '50%'
|
|
24
|
+
},
|
|
25
|
+
success: {
|
|
26
|
+
backgroundColor: tokens.colorStatusSuccessForeground3
|
|
27
|
+
},
|
|
28
|
+
warning: {
|
|
29
|
+
backgroundColor: tokens.colorStatusWarningForeground2
|
|
30
|
+
},
|
|
31
|
+
danger: {
|
|
32
|
+
backgroundColor: tokens.colorStatusDangerForeground3
|
|
33
|
+
}
|
|
33
34
|
});
|
|
34
35
|
/**
|
|
35
36
|
* Apply styling to the ResponseCount slots based on the state
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
*/
|
|
38
|
+
export const useResponseCountStyles_unstable = state => {
|
|
39
|
+
'use no memo';
|
|
40
|
+
|
|
41
|
+
const styles = useStyles();
|
|
42
|
+
state.root.className = mergeClasses(responseCountClassNames.root, styles.root, state.root.className);
|
|
43
|
+
if (state.indicator) {
|
|
44
|
+
state.indicator.className = mergeClasses(responseCountClassNames.indicator, styles.indicator, styles[state.status], state.indicator.className);
|
|
45
|
+
}
|
|
46
|
+
return state;
|
|
44
47
|
};
|
|
48
|
+
//# sourceMappingURL=useResponseCountStyles.styles.raw.js.map
|
package/lib/index.js
CHANGED
|
@@ -18,4 +18,4 @@ const ResponseCount = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
|
18
18
|
(0, _useResponseCountStylesstyles.useResponseCountStyles_unstable)(state);
|
|
19
19
|
return (0, _renderResponseCount.renderResponseCount_unstable)(state);
|
|
20
20
|
});
|
|
21
|
-
ResponseCount.displayName = 'ResponseCount';
|
|
21
|
+
ResponseCount.displayName = 'ResponseCount'; //# sourceMappingURL=ResponseCount.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ResponseCount.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useResponseCount_unstable } from './useResponseCount';\nimport { renderResponseCount_unstable } from './renderResponseCount';\nimport { useResponseCountStyles_unstable } from './useResponseCountStyles.styles';\nimport type { ResponseCountProps } from './ResponseCount.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\n\n// ResponseCount component - TODO: add more docs\nexport const ResponseCount: ForwardRefComponent<ResponseCountProps> = React.forwardRef((props, ref) => {\n const state = useResponseCount_unstable(props, ref);\n\n useResponseCountStyles_unstable(state);\n return renderResponseCount_unstable(state);\n});\n\nResponseCount.displayName = 'ResponseCount';\n"],"names":["ResponseCount","React","forwardRef","props","
|
|
1
|
+
{"version":3,"sources":["ResponseCount.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useResponseCount_unstable } from './useResponseCount';\nimport { renderResponseCount_unstable } from './renderResponseCount';\nimport { useResponseCountStyles_unstable } from './useResponseCountStyles.styles';\nimport type { ResponseCountProps } from './ResponseCount.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\n\n// ResponseCount component - TODO: add more docs\nexport const ResponseCount: ForwardRefComponent<ResponseCountProps> = React.forwardRef((props, ref) => {\n const state = useResponseCount_unstable(props, ref);\n\n useResponseCountStyles_unstable(state);\n return renderResponseCount_unstable(state);\n});\n\nResponseCount.displayName = 'ResponseCount';\n"],"names":["ResponseCount","React","forwardRef","props","state","useResponseCount_unstable","useResponseCountStyles_unstable","renderResponseCount_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;;iEARU;kCACmB;qCACG;8CACG;AAKzC,MAAMA,gBAAAA,WAAAA,GAAAA,OAAyDC,UAAMC,CAAU,CAACC,OAACA;UACtFC,QAAMA,IAAAA,2CAAQC,EAAAA,OAA0BF;qEAExCG,EAAAA;WACAC,IAAAA,iDAAOA,EAAAA;AACT;AAEAP,cAAcQ,WAAW,GAAG"}
|
|
@@ -29,3 +29,4 @@ const _ResponseCount = require("./ResponseCount");
|
|
|
29
29
|
const _renderResponseCount = require("./renderResponseCount");
|
|
30
30
|
const _useResponseCount = require("./useResponseCount");
|
|
31
31
|
const _useResponseCountStylesstyles = require("./useResponseCountStyles.styles");
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["renderResponseCount.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { ResponseCountState, ResponseCountSlots } from './ResponseCount.types';\n\n/**\n * Render the final JSX of ResponseCount\n */\nexport const renderResponseCount_unstable = (state: ResponseCountState) => {\n assertSlots<ResponseCountSlots>(state);\n\n return (\n <state.root>\n {state.indicator && <state.indicator />}\n {state.root.children}\n </state.root>\n );\n};\n"],"names":["
|
|
1
|
+
{"version":3,"sources":["renderResponseCount.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { ResponseCountState, ResponseCountSlots } from './ResponseCount.types';\n\n/**\n * Render the final JSX of ResponseCount\n */\nexport const renderResponseCount_unstable = (state: ResponseCountState) => {\n assertSlots<ResponseCountSlots>(state);\n\n return (\n <state.root>\n {state.indicator && <state.indicator />}\n {state.root.children}\n </state.root>\n );\n};\n"],"names":["assertSlots","state","indicator","_jsx","root","children"],"rangeMappings":";;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUEA;;;eAAAA;;;4BATF;iCAE4B;AAO1BA,MAAAA,+BAAgCC,CAAAA;oCAEhC,EAAAA;;kBAEKA;YAAAA,MAAMC,SAAS,IAAA,WAAI,GAAAC,IAAAA,eAACF,EAAAA,MAAMC,SAAS,EAAA,CAAA;YAAAD,MAAAG,IAAA,CAAAC,QAAA;SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useResponseCount.ts"],"sourcesContent":["import type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-components';\nimport type { ResponseCountProps, ResponseCountState } from './ResponseCount.types';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render ResponseCount.\n *\n * The returned state can be modified with hooks such as useResponseCountStyles_unstable,\n * before being passed to renderResponseCount_unstable.\n *\n * @param props - props from this instance of ResponseCount\n * @param ref - reference to root HTMLElement of ResponseCount\n */\nexport const useResponseCount_unstable = (\n props: ResponseCountProps,\n ref: React.Ref<HTMLElement>,\n): ResponseCountState => {\n const { status } = props;\n return {\n status,\n\n components: {\n root: 'span',\n indicator: 'span',\n },\n\n root: slot.always(\n getIntrinsicElementProps('span', {\n ref,\n ...props,\n }),\n { elementType: 'span' },\n ),\n indicator: slot.optional(props.indicator, { elementType: 'span', renderByDefault: true }),\n };\n};\n"],"names":["
|
|
1
|
+
{"version":3,"sources":["useResponseCount.ts"],"sourcesContent":["import type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-components';\nimport type { ResponseCountProps, ResponseCountState } from './ResponseCount.types';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render ResponseCount.\n *\n * The returned state can be modified with hooks such as useResponseCountStyles_unstable,\n * before being passed to renderResponseCount_unstable.\n *\n * @param props - props from this instance of ResponseCount\n * @param ref - reference to root HTMLElement of ResponseCount\n */\nexport const useResponseCount_unstable = (\n props: ResponseCountProps,\n ref: React.Ref<HTMLElement>,\n): ResponseCountState => {\n const { status } = props;\n return {\n status,\n\n components: {\n root: 'span',\n indicator: 'span',\n },\n\n root: slot.always(\n getIntrinsicElementProps('span', {\n ref,\n ...props,\n }),\n { elementType: 'span' },\n ),\n indicator: slot.optional(props.indicator, { elementType: 'span', renderByDefault: true }),\n };\n};\n"],"names":["status","props","root","ref","slot","always","getIntrinsicElementProps","indicator","elementType","optional","renderByDefault"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAmBUA;;;eAAAA;;;iCAlBqC;AAkB7C,MAAQA,4BAAWC,CAAAA,OAAAA;UACnB,QACED;;;oBAKA;kBAEAE;uBAEIC;;cAEFC,qBACA,CAAAC,MAAA,CAAAC,IAAAA,yCAAA,EAAA,QAAA;;eAAsBL,KAAA;YAExBM;yBAA4CC;;mBAA2CJ,qBAAA,CAAAK,QAAA,CAAAR,MAAAM,SAAA,EAAA;YACzFC,aAAA;YACAE,iBAAA"}
|
|
@@ -57,4 +57,4 @@ const useResponseCountStyles_unstable = (state)=>{
|
|
|
57
57
|
state.indicator.className = (0, _reactcomponents.mergeClasses)(responseCountClassNames.indicator, styles.indicator, styles[state.status], state.indicator.className);
|
|
58
58
|
}
|
|
59
59
|
return state;
|
|
60
|
-
};
|
|
60
|
+
}; //# sourceMappingURL=useResponseCountStyles.styles.raw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useResponseCountStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { ResponseCountSlots, ResponseCountState } from './ResponseCount.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const responseCountClassNames: SlotClassNames<ResponseCountSlots> = {\n root: 'fai-ResponseCount',\n indicator: 'fai-ResponseCount__indicator',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'inline-flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: tokens.spacingHorizontalXS,\n ...typographyStyles.caption2,\n color: tokens.colorNeutralForeground4,\n },\n indicator: {\n display: 'inline-block',\n width: '8px',\n height: '8px',\n borderRadius: '50%',\n },\n success: {\n backgroundColor: tokens.colorStatusSuccessForeground3,\n },\n warning: {\n backgroundColor: tokens.colorStatusWarningForeground2,\n },\n danger: {\n backgroundColor: tokens.colorStatusDangerForeground3,\n },\n});\n\n/**\n * Apply styling to the ResponseCount slots based on the state\n */\nexport const useResponseCountStyles_unstable = (state: ResponseCountState): ResponseCountState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(responseCountClassNames.root, styles.root, state.root.className);\n\n if (state.indicator) {\n state.indicator.className = mergeClasses(\n responseCountClassNames.indicator,\n styles.indicator,\n styles[state.status],\n state.indicator.className,\n );\n }\n\n return state;\n};\n"],"names":["responseCountClassNames","
|
|
1
|
+
{"version":3,"sources":["useResponseCountStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { ResponseCountSlots, ResponseCountState } from './ResponseCount.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const responseCountClassNames: SlotClassNames<ResponseCountSlots> = {\n root: 'fai-ResponseCount',\n indicator: 'fai-ResponseCount__indicator',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'inline-flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: tokens.spacingHorizontalXS,\n ...typographyStyles.caption2,\n color: tokens.colorNeutralForeground4,\n },\n indicator: {\n display: 'inline-block',\n width: '8px',\n height: '8px',\n borderRadius: '50%',\n },\n success: {\n backgroundColor: tokens.colorStatusSuccessForeground3,\n },\n warning: {\n backgroundColor: tokens.colorStatusWarningForeground2,\n },\n danger: {\n backgroundColor: tokens.colorStatusDangerForeground3,\n },\n});\n\n/**\n * Apply styling to the ResponseCount slots based on the state\n */\nexport const useResponseCountStyles_unstable = (state: ResponseCountState): ResponseCountState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(responseCountClassNames.root, styles.root, state.root.className);\n\n if (state.indicator) {\n state.indicator.className = mergeClasses(\n responseCountClassNames.indicator,\n styles.indicator,\n styles[state.status],\n state.indicator.className,\n );\n }\n\n return state;\n};\n"],"names":["responseCountClassNames","styles","useStyles","root","indicator","makeStyles","display","flexDirection","alignItems","tokens","typographyStyles","caption2","colorNeutralForeground4","color","width","height","borderRadius","backgroundColor","colorStatusSuccessForeground3","colorStatusWarningForeground2","colorStatusDangerForeground3","state","className","mergeClasses","status"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,uBAAAA;eAAAA;;IAwCLC,+BAASC;eAATD;;;iCA7CmD;wBACpC;AAIhB,MAAMD,0BAA8D;UACzEG;eACAC;AACF;AAEA;;CAEC,SAECD,YAAME,IAAAA,2BAAA,EAAA;UACJC;iBACAC;uBACAC;oBACKC;aACLA,cAAGC,CAAAA,mBAAiBC;4CACNC,CAAAA,QAAAA;QAChBC,OAAAJ,cAAA,CAAAG,uBAAA;;eAEEN;iBACAQ;eACAC;gBACAC;QACFA,cAAA;;aAEEC;QACFA,iBAAAR,cAAA,CAAAS,6BAAA;;aAEED;QACFA,iBAAAR,cAAA,CAAAU,6BAAA;;YAEEF;QACFA,iBAAAR,cAAA,CAAAW,4BAAA;IACF;AAEA;AAME,MAAMnB,kCAASC,CAAAA;;UAIbmB,SAAMjB;UAMRD,IAAA,CAAAmB,SAAA,GAAAC,IAAAA,6BAAA,EAAAvB,wBAAAG,IAAA,EAAAF,OAAAE,IAAA,EAAAkB,MAAAlB,IAAA,CAAAmB,SAAA;QAEAD,MAAOA,SAAAA,EAAAA;QACPA,MAAAjB,SAAA,CAAAkB,SAAA,GAAAC,IAAAA,6BAAA,EAAAvB,wBAAAI,SAAA,EAAAH,OAAAG,SAAA,EAAAH,MAAA,CAAAoB,MAAAG,MAAA,CAAA,EAAAH,MAAAjB,SAAA,CAAAkB,SAAA"}
|
package/lib-commonjs/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-response-count",
|
|
3
|
-
"version": "0.2.14-hotfix.
|
|
3
|
+
"version": "0.2.14-hotfix.2",
|
|
4
4
|
"description": "Fluent AI control for displaying the number of responses and the remaining response count",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/tokens": "0.3.11-hotfix.
|
|
15
|
+
"@fluentui-copilot/tokens": "0.3.11-hotfix.2",
|
|
16
16
|
"@swc/helpers": "^0.5.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|