@fluentui-copilot/react-prompt-starter 0.5.0 → 0.6.0
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 +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/index.d.ts +1 -1
- package/lib/components/PromptStarter/usePromptStarter.js +2 -2
- package/lib/components/PromptStarter/usePromptStarter.js.map +1 -1
- package/lib-commonjs/components/PromptStarter/usePromptStarter.js +1 -1
- package/lib-commonjs/components/PromptStarter/usePromptStarter.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-prompt-starter",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Wed,
|
|
5
|
+
"date": "Wed, 10 Apr 2024 23:06:59 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-prompt-starter_v0.6.0",
|
|
7
|
+
"version": "0.6.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
12
|
+
"package": "@fluentui-copilot/react-prompt-starter",
|
|
13
|
+
"commit": "2afa98912cd99ed6f604c582caee4d49d1ba895d",
|
|
14
|
+
"comment": "fix: Replace usage of deprecated getNativeElementProps with getIntrinsicElementProps."
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 13 Mar 2024 18:01:50 GMT",
|
|
6
21
|
"tag": "@fluentui-copilot/react-prompt-starter_v0.5.0",
|
|
7
22
|
"version": "0.5.0",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-prompt-starter
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed,
|
|
3
|
+
This log was last generated on Wed, 10 Apr 2024 23:06:59 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [0.6.0](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.6.0)
|
|
8
|
+
|
|
9
|
+
Wed, 10 Apr 2024 23:06:59 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.5.0..@fluentui-copilot/react-prompt-starter_v0.6.0)
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- fix: Replace usage of deprecated getNativeElementProps with getIntrinsicElementProps. ([PR #1512](https://github.com/microsoft/fluentai/pull/1512) by Humberto.Morimoto@microsoft.com)
|
|
15
|
+
|
|
7
16
|
## [0.5.0](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.5.0)
|
|
8
17
|
|
|
9
|
-
Wed, 13 Mar 2024 18:
|
|
18
|
+
Wed, 13 Mar 2024 18:01:50 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.4.1..@fluentui-copilot/react-prompt-starter_v0.5.0)
|
|
11
20
|
|
|
12
21
|
### Minor changes
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare const renderPromptStarter_unstable: (state: PromptStarterState) =
|
|
|
38
38
|
* @param props - props from this instance of PromptStarter
|
|
39
39
|
* @param ref - reference to root HTMLElement of PromptStarter
|
|
40
40
|
*/
|
|
41
|
-
export declare const usePromptStarter_unstable: (props: PromptStarterProps, ref: React.Ref<
|
|
41
|
+
export declare const usePromptStarter_unstable: (props: PromptStarterProps, ref: React.Ref<HTMLButtonElement>) => PromptStarterState;
|
|
42
42
|
|
|
43
43
|
export declare const usePromptStarterStyles_unstable: (state: PromptStarterState) => PromptStarterState;
|
|
44
44
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Badge,
|
|
1
|
+
import { Badge, getIntrinsicElementProps, slot } from '@fluentui/react-components';
|
|
2
2
|
/**
|
|
3
3
|
* Create the state required to render PromptStarter.
|
|
4
4
|
*
|
|
@@ -17,7 +17,7 @@ export const usePromptStarter_unstable = (props, ref) => {
|
|
|
17
17
|
prompt: 'span',
|
|
18
18
|
badge: Badge
|
|
19
19
|
},
|
|
20
|
-
root: slot.always(
|
|
20
|
+
root: slot.always(getIntrinsicElementProps('button', {
|
|
21
21
|
ref,
|
|
22
22
|
...props
|
|
23
23
|
}), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["usePromptStarter.ts"],"sourcesContent":["import { Badge,
|
|
1
|
+
{"version":3,"sources":["usePromptStarter.ts"],"sourcesContent":["import { Badge, getIntrinsicElementProps, slot } from '@fluentui/react-components';\nimport type { PromptStarterProps, PromptStarterState } from './PromptStarter.types';\n\n/**\n * Create the state required to render PromptStarter.\n *\n * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,\n * before being passed to renderPromptStarter_unstable.\n *\n * @param props - props from this instance of PromptStarter\n * @param ref - reference to root HTMLElement of PromptStarter\n */\nexport const usePromptStarter_unstable = (\n props: PromptStarterProps,\n ref: React.Ref<HTMLButtonElement>,\n): PromptStarterState => {\n return {\n components: {\n root: 'button',\n icon: 'span',\n category: 'span',\n prompt: 'span',\n badge: Badge,\n },\n root: slot.always(\n getIntrinsicElementProps('button', {\n ref,\n ...props,\n }),\n { elementType: 'button' },\n ),\n icon: slot.always(props.icon, { elementType: 'span' }),\n category: slot.always(props.category, { elementType: 'span' }),\n prompt: slot.optional(props.prompt, { elementType: 'span' }),\n badge: slot.optional(props.badge, { defaultProps: { appearance: 'tint' }, elementType: Badge }),\n };\n};\n"],"names":["Badge","getIntrinsicElementProps","slot","usePromptStarter_unstable","props","ref","components","root","icon","category","prompt","badge","always","elementType","optional","defaultProps","appearance"],"mappings":"AAAA,SAASA,KAAK,EAAEC,wBAAwB,EAAEC,IAAI,QAAQ,6BAA6B;AAGnF;;;;;;;;CAQC,GACD,OAAO,MAAMC,4BAA4B,CACvCC,OACAC;IAEA,OAAO;QACLC,YAAY;YACVC,MAAM;YACNC,MAAM;YACNC,UAAU;YACVC,QAAQ;YACRC,OAAOX;QACT;QACAO,MAAML,KAAKU,MAAM,CACfX,yBAAyB,UAAU;YACjCI;YACA,GAAGD,KAAK;QACV,IACA;YAAES,aAAa;QAAS;QAE1BL,MAAMN,KAAKU,MAAM,CAACR,MAAMI,IAAI,EAAE;YAAEK,aAAa;QAAO;QACpDJ,UAAUP,KAAKU,MAAM,CAACR,MAAMK,QAAQ,EAAE;YAAEI,aAAa;QAAO;QAC5DH,QAAQR,KAAKY,QAAQ,CAACV,MAAMM,MAAM,EAAE;YAAEG,aAAa;QAAO;QAC1DF,OAAOT,KAAKY,QAAQ,CAACV,MAAMO,KAAK,EAAE;YAAEI,cAAc;gBAAEC,YAAY;YAAO;YAAGH,aAAab;QAAM;IAC/F;AACF,EAAE"}
|
|
@@ -18,7 +18,7 @@ const usePromptStarter_unstable = (props, ref)=>{
|
|
|
18
18
|
prompt: 'span',
|
|
19
19
|
badge: _reactcomponents.Badge
|
|
20
20
|
},
|
|
21
|
-
root: _reactcomponents.slot.always((0, _reactcomponents.
|
|
21
|
+
root: _reactcomponents.slot.always((0, _reactcomponents.getIntrinsicElementProps)('button', {
|
|
22
22
|
ref,
|
|
23
23
|
...props
|
|
24
24
|
}), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["usePromptStarter.js"],"sourcesContent":["import { Badge,
|
|
1
|
+
{"version":3,"sources":["usePromptStarter.js"],"sourcesContent":["import { Badge, getIntrinsicElementProps, slot } from '@fluentui/react-components';\n/**\n * Create the state required to render PromptStarter.\n *\n * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,\n * before being passed to renderPromptStarter_unstable.\n *\n * @param props - props from this instance of PromptStarter\n * @param ref - reference to root HTMLElement of PromptStarter\n */\nexport const usePromptStarter_unstable = (props, ref) => {\n return {\n components: {\n root: 'button',\n icon: 'span',\n category: 'span',\n prompt: 'span',\n badge: Badge\n },\n root: slot.always(getIntrinsicElementProps('button', {\n ref,\n ...props\n }), {\n elementType: 'button'\n }),\n icon: slot.always(props.icon, {\n elementType: 'span'\n }),\n category: slot.always(props.category, {\n elementType: 'span'\n }),\n prompt: slot.optional(props.prompt, {\n elementType: 'span'\n }),\n badge: slot.optional(props.badge, {\n defaultProps: {\n appearance: 'tint'\n },\n elementType: Badge\n })\n };\n};\n//# sourceMappingURL=usePromptStarter.js.map"],"names":["usePromptStarter_unstable","props","ref","components","root","icon","category","prompt","badge","Badge","slot","always","getIntrinsicElementProps","elementType","optional","defaultProps","appearance"],"mappings":";;;;+BAUaA;;;eAAAA;;;iCAVyC;AAU/C,MAAMA,4BAA4B,CAACC,OAAOC;IAC/C,OAAO;QACLC,YAAY;YACVC,MAAM;YACNC,MAAM;YACNC,UAAU;YACVC,QAAQ;YACRC,OAAOC,sBAAK;QACd;QACAL,MAAMM,qBAAI,CAACC,MAAM,CAACC,IAAAA,yCAAwB,EAAC,UAAU;YACnDV;YACA,GAAGD,KAAK;QACV,IAAI;YACFY,aAAa;QACf;QACAR,MAAMK,qBAAI,CAACC,MAAM,CAACV,MAAMI,IAAI,EAAE;YAC5BQ,aAAa;QACf;QACAP,UAAUI,qBAAI,CAACC,MAAM,CAACV,MAAMK,QAAQ,EAAE;YACpCO,aAAa;QACf;QACAN,QAAQG,qBAAI,CAACI,QAAQ,CAACb,MAAMM,MAAM,EAAE;YAClCM,aAAa;QACf;QACAL,OAAOE,qBAAI,CAACI,QAAQ,CAACb,MAAMO,KAAK,EAAE;YAChCO,cAAc;gBACZC,YAAY;YACd;YACAH,aAAaJ,sBAAK;QACpB;IACF;AACF,GACA,4CAA4C"}
|