@fluentui-copilot/react-prompt-starter 0.0.0-nightly-20240403-0404-6f5eb4de.1 → 0.0.0-nightly-20240404-0406-2afa9891.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 CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui-copilot/react-prompt-starter",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 03 Apr 2024 04:09:41 GMT",
6
- "tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240403-0404-6f5eb4de.1",
7
- "version": "0.0.0-nightly-20240403-0404-6f5eb4de.1",
5
+ "date": "Thu, 04 Apr 2024 04:11:43 GMT",
6
+ "tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240404-0406-2afa9891.1",
7
+ "version": "0.0.0-nightly-20240404-0406-2afa9891.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-20240403-0404-6f5eb4de.1",
20
- "commit": "2256256f8e513df87185ea55451d8392e99eace3"
19
+ "comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240404-0406-2afa9891.1",
20
+ "commit": "3449a8e8731e9b9dee01156614d56a496e64dd11"
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 Wed, 03 Apr 2024 04:09:41 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 04 Apr 2024 04:11:43 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20240403-0404-6f5eb4de.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240403-0404-6f5eb4de.1)
7
+ ## [0.0.0-nightly-20240404-0406-2afa9891.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240404-0406-2afa9891.1)
8
8
 
9
- Wed, 03 Apr 2024 04:09:41 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-20240403-0404-6f5eb4de.1)
9
+ Thu, 04 Apr 2024 04:11:43 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-20240404-0406-2afa9891.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-20240403-0404-6f5eb4de.1 ([commit](https://github.com/microsoft/fluentai/commit/2256256f8e513df87185ea55451d8392e99eace3) by beachball)
15
+ - Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240404-0406-2afa9891.1 ([commit](https://github.com/microsoft/fluentai/commit/3449a8e8731e9b9dee01156614d56a496e64dd11) 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<HTMLElement>) => PromptStarterState;
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, getNativeElementProps, slot } from '@fluentui/react-components';
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(getNativeElementProps('button', {
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, getNativeElementProps, 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<HTMLElement>,\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 getNativeElementProps('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","getNativeElementProps","slot","usePromptStarter_unstable","props","ref","components","root","icon","category","prompt","badge","always","elementType","optional","defaultProps","appearance"],"mappings":"AAAA,SAASA,KAAK,EAAEC,qBAAqB,EAAEC,IAAI,QAAQ,6BAA6B;AAGhF;;;;;;;;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,sBAAsB,UAAU;YAC9BI;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"}
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.getNativeElementProps)('button', {
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, getNativeElementProps, 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(getNativeElementProps('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","getNativeElementProps","elementType","optional","defaultProps","appearance"],"mappings":";;;;+BAUaA;;;eAAAA;;;iCAVsC;AAU5C,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,sCAAqB,EAAC,UAAU;YAChDV;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"}
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-20240403-0404-6f5eb4de.1",
3
+ "version": "0.0.0-nightly-20240404-0406-2afa9891.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-20240403-0404-6f5eb4de.1",
15
+ "@fluentui-copilot/react-provider": "0.0.0-nightly-20240404-0406-2afa9891.1",
16
16
  "@swc/helpers": "^0.5.1"
17
17
  },
18
18
  "peerDependencies": {