@fluentui-copilot/react-response-count 0.0.0-nightly-20250715-0404-529d18be.1 → 0.0.0-nightly-20250717-0405-eecbae35.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/ResponseCount.js +0 -1
- package/lib/components/ResponseCount/ResponseCount.js +4 -5
- package/lib/components/ResponseCount/ResponseCount.types.js +1 -2
- package/lib/components/ResponseCount/index.js +0 -1
- package/lib/components/ResponseCount/renderResponseCount.js +9 -8
- package/lib/components/ResponseCount/useResponseCount.js +19 -23
- package/lib/index.js +0 -1
- package/lib-commonjs/ResponseCount.js +0 -1
- 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 +0 -1
- package/lib-commonjs/components/ResponseCount/index.js +0 -1
- 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/index.js +0 -1
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-response-count",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-response-count_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Thu, 17 Jul 2025 04:13:02 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-response-count_v0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
7
|
+
"version": "0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 Thu, 17 Jul 2025 04:13:02 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-20250717-0405-eecbae35.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-response-count_v0.0.0-nightly-20250717-0405-eecbae35.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-response-count_v0.2.16..@fluentui-copilot/react-response-count_v0.0.0-nightly-
|
|
9
|
+
Thu, 17 Jul 2025 04:13:02 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-response-count_v0.2.16..@fluentui-copilot/react-response-count_v0.0.0-nightly-20250717-0405-eecbae35.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
package/lib/ResponseCount.js
CHANGED
|
@@ -3,10 +3,9 @@ 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__*/React.forwardRef((props, ref)
|
|
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,4 +2,3 @@ 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,12 +1,13 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
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
|
-
|
|
5
|
+
*/ export const renderResponseCount_unstable = (state)=>{
|
|
6
|
+
assertSlots(state);
|
|
7
|
+
return /*#__PURE__*/ _jsxs(state.root, {
|
|
8
|
+
children: [
|
|
9
|
+
state.indicator && /*#__PURE__*/ _jsx(state.indicator, {}),
|
|
10
|
+
state.root.children
|
|
11
|
+
]
|
|
12
|
+
});
|
|
11
13
|
};
|
|
12
|
-
//# sourceMappingURL=renderResponseCount.js.map
|
|
@@ -8,27 +8,23 @@ 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
|
-
|
|
30
|
-
renderByDefault: true
|
|
31
|
-
})
|
|
32
|
-
};
|
|
11
|
+
*/ export const useResponseCount_unstable = (props, ref)=>{
|
|
12
|
+
const { status } = props;
|
|
13
|
+
return {
|
|
14
|
+
status,
|
|
15
|
+
components: {
|
|
16
|
+
root: 'span',
|
|
17
|
+
indicator: 'span'
|
|
18
|
+
},
|
|
19
|
+
root: slot.always(getIntrinsicElementProps('span', {
|
|
20
|
+
ref,
|
|
21
|
+
...props
|
|
22
|
+
}), {
|
|
23
|
+
elementType: 'span'
|
|
24
|
+
}),
|
|
25
|
+
indicator: slot.optional(props.indicator, {
|
|
26
|
+
elementType: 'span',
|
|
27
|
+
renderByDefault: true
|
|
28
|
+
})
|
|
29
|
+
};
|
|
33
30
|
};
|
|
34
|
-
//# sourceMappingURL=useResponseCount.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';
|
|
@@ -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","state","useResponseCount_unstable","useResponseCountStyles_unstable","renderResponseCount_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;;iEARU;kCACmB;qCACG;8CACG;AAKzC,MAAMA,gBAAAA,WAAAA,
|
|
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","ref","state","useResponseCount_unstable","useResponseCountStyles_unstable","renderResponseCount_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;;iEARU;kCACmB;qCACG;8CACG;AAKzC,MAAMA,gBAAAA,WAAAA,GAAyDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQC,IAAAA,2CAAAA,EAA0BH,OAAOC;IAE/CG,IAAAA,6DAAAA,EAAgCF;IAChC,OAAOG,IAAAA,iDAAAA,EAA6BH;AACtC;AAEAL,cAAcS,WAAW,GAAG"}
|
|
@@ -29,4 +29,3 @@ 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":["renderResponseCount_unstable","state","assertSlots","_jsxs","root","indicator","_jsx","children"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;4BARb;iCAE4B;AAMrB,MAAMA,+BAA+B,CAACC;IAC3CC,IAAAA,4BAAAA,EAAgCD;IAEhC,OAAA,WAAA,GACEE,IAAAA,gBAAA,EAACF,MAAMG,IAAI,EAAA;;YACRH,MAAMI,SAAS,IAAA,WAAA,GAAIC,IAAAA,eAAA,EAACL,MAAMI,SAAS,EAAA,CAAA;YACnCJ,MAAMG,IAAI,CAACG,QAAQ;;;AAG1B"}
|
|
@@ -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":["useResponseCount_unstable","props","ref","status","components","root","indicator","slot","always","getIntrinsicElementProps","elementType","optional","renderByDefault"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAeaA;;;eAAAA;;;iCAdkC;AAcxC,MAAMA,4BAA4B,CACvCC,OACAC;IAEA,MAAM,EAAEC,MAAM,EAAE,GAAGF;IACnB,OAAO;QACLE;QAEAC,YAAY;YACVC,MAAM;YACNC,WAAW;QACb;QAEAD,MAAME,qBAAAA,CAAKC,MAAM,CACfC,IAAAA,yCAAAA,EAAyB,QAAQ;YAC/BP;YACA,GAAGD,KAAK;QACV,IACA;YAAES,aAAa;QAAO;QAExBJ,WAAWC,qBAAAA,CAAKI,QAAQ,CAACV,MAAMK,SAAS,EAAE;YAAEI,aAAa;YAAQE,iBAAiB;QAAK;IACzF;AACF"}
|
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.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
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.0.0-nightly-
|
|
15
|
+
"@fluentui-copilot/tokens": "0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
16
16
|
"@swc/helpers": "^0.5.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|