@fluentui-copilot/react-prompt-starter 0.0.0-nightly-20240403-0404-6f5eb4de.1 → 0.0.0-nightly-20240405-0406-15f86c74.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 +5 -5
- package/CHANGELOG.md +5 -5
- 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 +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-prompt-starter",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Fri, 05 Apr 2024 04:11:31 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
7
|
+
"version": "0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
{
|
|
17
17
|
"author": "beachball",
|
|
18
18
|
"package": "@fluentui-copilot/react-prompt-starter",
|
|
19
|
-
"comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-
|
|
20
|
-
"commit": "
|
|
19
|
+
"comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
20
|
+
"commit": "7c2db8a7d209d0ba423bea7703b4f2c15b75cff3"
|
|
21
21
|
}
|
|
22
22
|
]
|
|
23
23
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-prompt-starter
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 05 Apr 2024 04:11:31 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-20240405-0406-15f86c74.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240405-0406-15f86c74.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.5.0..@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-
|
|
9
|
+
Fri, 05 Apr 2024 04:11:31 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-starter_v0.5.0..@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240405-0406-15f86c74.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
14
|
- Release nightly ([commit](https://github.com/microsoft/fluentai/commit/not available) by fluentui-internal@service.microsoft.com)
|
|
15
|
-
- Bump @fluentui-copilot/react-provider to v0.0.0-nightly-
|
|
15
|
+
- Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240405-0406-15f86c74.1 ([commit](https://github.com/microsoft/fluentai/commit/7c2db8a7d209d0ba423bea7703b4f2c15b75cff3) by beachball)
|
|
16
16
|
|
|
17
17
|
## [0.5.0](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.5.0)
|
|
18
18
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-prompt-starter",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
4
4
|
"description": "A Fluent AI package",
|
|
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/react-provider": "0.0.0-nightly-
|
|
15
|
+
"@fluentui-copilot/react-provider": "0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
16
16
|
"@swc/helpers": "^0.5.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|