@fluentui-copilot/react-prompt-starter 0.0.0-nightly-20240313-0404-8abc883d.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.
Files changed (38) hide show
  1. package/CHANGELOG.json +297 -0
  2. package/CHANGELOG.md +98 -0
  3. package/LICENSE +23 -0
  4. package/README.md +5 -0
  5. package/dist/index.d.ts +45 -0
  6. package/lib/PromptStarter.js +2 -0
  7. package/lib/PromptStarter.js.map +1 -0
  8. package/lib/components/PromptStarter/PromptStarter.js +13 -0
  9. package/lib/components/PromptStarter/PromptStarter.js.map +1 -0
  10. package/lib/components/PromptStarter/PromptStarter.types.js +2 -0
  11. package/lib/components/PromptStarter/PromptStarter.types.js.map +1 -0
  12. package/lib/components/PromptStarter/index.js +6 -0
  13. package/lib/components/PromptStarter/index.js.map +1 -0
  14. package/lib/components/PromptStarter/renderPromptStarter.js +11 -0
  15. package/lib/components/PromptStarter/renderPromptStarter.js.map +1 -0
  16. package/lib/components/PromptStarter/usePromptStarter.js +43 -0
  17. package/lib/components/PromptStarter/usePromptStarter.js.map +1 -0
  18. package/lib/components/PromptStarter/usePromptStarterStyles.js +106 -0
  19. package/lib/components/PromptStarter/usePromptStarterStyles.js.map +1 -0
  20. package/lib/index.js +2 -0
  21. package/lib/index.js.map +1 -0
  22. package/lib-commonjs/PromptStarter.js +7 -0
  23. package/lib-commonjs/PromptStarter.js.map +1 -0
  24. package/lib-commonjs/components/PromptStarter/PromptStarter.js +23 -0
  25. package/lib-commonjs/components/PromptStarter/PromptStarter.js.map +1 -0
  26. package/lib-commonjs/components/PromptStarter/PromptStarter.types.js +5 -0
  27. package/lib-commonjs/components/PromptStarter/PromptStarter.types.js.map +1 -0
  28. package/lib-commonjs/components/PromptStarter/index.js +11 -0
  29. package/lib-commonjs/components/PromptStarter/index.js.map +1 -0
  30. package/lib-commonjs/components/PromptStarter/renderPromptStarter.js +28 -0
  31. package/lib-commonjs/components/PromptStarter/renderPromptStarter.js.map +1 -0
  32. package/lib-commonjs/components/PromptStarter/usePromptStarter.js +43 -0
  33. package/lib-commonjs/components/PromptStarter/usePromptStarter.js.map +1 -0
  34. package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.js +256 -0
  35. package/lib-commonjs/components/PromptStarter/usePromptStarterStyles.js.map +1 -0
  36. package/lib-commonjs/index.js +29 -0
  37. package/lib-commonjs/index.js.map +1 -0
  38. package/package.json +39 -0
package/CHANGELOG.json ADDED
@@ -0,0 +1,297 @@
1
+ {
2
+ "name": "@fluentui-copilot/react-prompt-starter",
3
+ "entries": [
4
+ {
5
+ "date": "Wed, 13 Mar 2024 04:09:45 GMT",
6
+ "tag": "@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240313-0404-8abc883d.1",
7
+ "version": "0.0.0-nightly-20240313-0404-8abc883d.1",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "fluentui-internal@service.microsoft.com",
12
+ "package": "@fluentui-copilot/react-prompt-starter",
13
+ "commit": "not available",
14
+ "comment": "Release nightly"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-copilot/react-prompt-starter",
19
+ "comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240313-0404-8abc883d.1",
20
+ "commit": "6953fd36fa1f984fe4271557d1ab88e559056e47"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Fri, 08 Mar 2024 00:29:22 GMT",
27
+ "tag": "@fluentai/prompt-starter_v0.4.1",
28
+ "version": "0.4.1",
29
+ "comments": {
30
+ "none": [
31
+ {
32
+ "author": "owcampbe@microsoft.com",
33
+ "package": "@fluentai/prompt-starter",
34
+ "commit": "877a68c8be7de14d9efe095e578f44733b317914",
35
+ "comment": "Merge branch '0.11' into user/owcampbe/Update0.11"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Fri, 01 Mar 2024 20:07:29 GMT",
42
+ "tag": "@fluentai/prompt-starter_v0.4.1",
43
+ "version": "0.4.1",
44
+ "comments": {
45
+ "none": [
46
+ {
47
+ "author": "estebanmu@microsoft.com",
48
+ "package": "@fluentai/prompt-starter",
49
+ "commit": "cb1a21b8465c9a9ff86e52d29a398af35f9d0d3d",
50
+ "comment": "chore: Add tests for SSR."
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Thu, 15 Feb 2024 20:24:48 GMT",
57
+ "tag": "@fluentai/prompt-starter_v0.4.0",
58
+ "version": "0.4.0",
59
+ "comments": {
60
+ "minor": [
61
+ {
62
+ "author": "tristan.watanabe@gmail.com",
63
+ "package": "@fluentai/prompt-starter",
64
+ "commit": "cd80fe52dd6c3d2b48c96c0ddb26b31cc232b4ca",
65
+ "comment": "chore: initial release to NPM."
66
+ }
67
+ ],
68
+ "none": [
69
+ {
70
+ "author": "tristan.watanabe@gmail.com",
71
+ "package": "@fluentai/prompt-starter",
72
+ "commit": "31ae3ad9098d67abbaf7ac83c402312748bc2ea8",
73
+ "comment": "chore: no longer shipping test related files."
74
+ }
75
+ ]
76
+ }
77
+ },
78
+ {
79
+ "date": "Thu, 15 Feb 2024 19:00:00 GMT",
80
+ "tag": "@fluentai/prompt-starter_v0.3.3",
81
+ "version": "0.3.3",
82
+ "comments": {
83
+ "none": [
84
+ {
85
+ "author": "tristan.watanabe@gmail.com",
86
+ "package": "@fluentai/prompt-starter",
87
+ "commit": "12c785efdd7e75542f017b70fff7a2d5b00b3df9",
88
+ "comment": "chore: disallow minor package bumps."
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ "date": "Fri, 02 Feb 2024 01:07:14 GMT",
95
+ "tag": "@fluentai/prompt-starter_v0.3.3",
96
+ "version": "0.3.3",
97
+ "comments": {
98
+ "patch": [
99
+ {
100
+ "author": "tristan.watanabe@gmail.com",
101
+ "package": "@fluentai/prompt-starter",
102
+ "commit": "85f5233474af6636d6e13b2f9e1be92ccb825ebd",
103
+ "comment": "fix: add missing peer dependencies from other Fluent AI package dependency."
104
+ }
105
+ ]
106
+ }
107
+ },
108
+ {
109
+ "date": "Tue, 12 Dec 2023 16:35:15 GMT",
110
+ "tag": "@fluentai/prompt-starter_v0.3.1",
111
+ "version": "0.3.1",
112
+ "comments": {
113
+ "none": [
114
+ {
115
+ "author": "tristan.watanabe@gmail.com",
116
+ "package": "@fluentai/prompt-starter",
117
+ "commit": "d678a67851c48124410bcf3776fb08dfe2ea3102",
118
+ "comment": "chore: upgrade to use yarn 3."
119
+ }
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "date": "Wed, 15 Nov 2023 00:55:21 GMT",
125
+ "tag": "@fluentai/prompt-starter_v0.3.0",
126
+ "version": "0.3.0",
127
+ "comments": {
128
+ "minor": [
129
+ {
130
+ "author": "tristan.watanabe@gmail.com",
131
+ "package": "@fluentai/prompt-starter",
132
+ "commit": "de4d0645ade56badaab3b5e2b72937e02aecf831",
133
+ "comment": "chore: move @fluentui dependencies to peer dependencies."
134
+ },
135
+ {
136
+ "author": "beachball",
137
+ "package": "@fluentai/prompt-starter",
138
+ "comment": "Bump @fluentai/provider to v0.6.0",
139
+ "commit": "1c9815cdebf4846b7edc4776fb6c711bf02b26f5"
140
+ }
141
+ ],
142
+ "patch": [
143
+ {
144
+ "author": "owcampbe@microsoft.com",
145
+ "package": "@fluentai/prompt-starter",
146
+ "commit": "1fdb8946ecb90822de0029afda0b61a184cfad7c",
147
+ "comment": "chore: Migrate PromptStarter to new slots API."
148
+ },
149
+ {
150
+ "author": "tristan.watanabe@gmail.com",
151
+ "package": "@fluentai/prompt-starter",
152
+ "commit": "0f8bee2a01c127a911afd5974efe899d70bddcf6",
153
+ "comment": "chore: bump peer deep range to latest @fluentui/react-components 9.37.3."
154
+ }
155
+ ]
156
+ }
157
+ },
158
+ {
159
+ "date": "Mon, 25 Sep 2023 20:31:08 GMT",
160
+ "tag": "@fluentai/prompt-starter_v0.2.1",
161
+ "version": "0.2.1",
162
+ "comments": {
163
+ "none": [
164
+ {
165
+ "author": "tristan.watanabe@gmail.com",
166
+ "package": "@fluentai/prompt-starter",
167
+ "commit": "5da9480d5a59872ac5148097a287e04d842d6dd6",
168
+ "comment": "chore: update swc transpilation to use swc-transpile script instead of cli."
169
+ }
170
+ ],
171
+ "patch": [
172
+ {
173
+ "author": "tristan.watanabe@gmail.com",
174
+ "package": "@fluentai/prompt-starter",
175
+ "commit": "3af73688a366aae72ea810e441c7096635e2efdd",
176
+ "comment": "fix: bump swc core to mitigate transpilation memory leaks."
177
+ },
178
+ {
179
+ "author": "beachball",
180
+ "package": "@fluentai/prompt-starter",
181
+ "comment": "Bump @fluentai/provider to v0.5.1",
182
+ "commit": "f633e55414cd3ed596793f7e8916d87a242d8c0d"
183
+ }
184
+ ]
185
+ }
186
+ },
187
+ {
188
+ "date": "Fri, 22 Sep 2023 02:11:56 GMT",
189
+ "tag": "@fluentai/prompt-starter_v0.2.0",
190
+ "version": "0.2.0",
191
+ "comments": {
192
+ "patch": [
193
+ {
194
+ "author": "tristan.watanabe@gmail.com",
195
+ "package": "@fluentai/prompt-starter",
196
+ "commit": "a206564fcbe9ebe96455a8f5e80fb8e508bd8cd8",
197
+ "comment": "chore: bump fluentui v9 dependencies to latest."
198
+ }
199
+ ],
200
+ "minor": [
201
+ {
202
+ "author": "beachball",
203
+ "package": "@fluentai/prompt-starter",
204
+ "comment": "Bump @fluentai/provider to v0.5.0",
205
+ "commit": "f6ef7c9c7854fa3f877cb0d4b9e8e8818b3b50a2"
206
+ }
207
+ ]
208
+ }
209
+ },
210
+ {
211
+ "date": "Fri, 08 Sep 2023 18:32:55 GMT",
212
+ "tag": "@fluentai/prompt-starter_v0.1.3",
213
+ "version": "0.1.3",
214
+ "comments": {
215
+ "patch": [
216
+ {
217
+ "author": "tristan.watanabe@gmail.com",
218
+ "package": "@fluentai/prompt-starter",
219
+ "commit": "290c3527dbf4a9a95eb5d5bcb420e2f81adda306",
220
+ "comment": "test: add playwright e2e testing setup and WCAG testing."
221
+ }
222
+ ]
223
+ }
224
+ },
225
+ {
226
+ "date": "Tue, 22 Aug 2023 23:54:16 GMT",
227
+ "tag": "@fluentai/prompt-starter_v0.1.2",
228
+ "version": "0.1.2",
229
+ "comments": {
230
+ "none": [
231
+ {
232
+ "author": "mgodbolt@microsoft.com",
233
+ "package": "@fluentai/prompt-starter",
234
+ "commit": "f5bb0b1b247fcd53b92d73bc57ded8551c8163d3",
235
+ "comment": "remove the unstable suffix from the new custom styles api"
236
+ }
237
+ ],
238
+ "patch": [
239
+ {
240
+ "author": "eysjiang@gmail.com",
241
+ "package": "@fluentai/prompt-starter",
242
+ "commit": "053b6ace2e6f9433ad062d44865b2d5488760f6b",
243
+ "comment": "add useCustomStyleHook to all components"
244
+ },
245
+ {
246
+ "author": "beachball",
247
+ "package": "@fluentai/prompt-starter",
248
+ "comment": "Bump @fluentai/provider to v0.4.0",
249
+ "commit": "d24e43b7f82b52f9728a6c977222a5f1bc23bb0e"
250
+ }
251
+ ]
252
+ }
253
+ },
254
+ {
255
+ "date": "Thu, 10 Aug 2023 17:07:07 GMT",
256
+ "tag": "@fluentai/prompt-starter_v0.1.1",
257
+ "version": "0.1.1",
258
+ "comments": {
259
+ "none": [
260
+ {
261
+ "author": "eysjiang@gmail.com",
262
+ "package": "@fluentai/prompt-starter",
263
+ "commit": "efd4619a9480e31a6406210fee8c6e74d66f8987",
264
+ "comment": "bump react-components version"
265
+ },
266
+ {
267
+ "author": "tristan.watanabe@gmail.com",
268
+ "package": "@fluentai/prompt-starter",
269
+ "commit": "1499ae1d03b0bf17d7afc0e063601cb4113ba86d",
270
+ "comment": "chore: replace @nrwl references with @nx"
271
+ },
272
+ {
273
+ "author": "tristan.watanabe@gmail.com",
274
+ "package": "@fluentai/prompt-starter",
275
+ "commit": "b2993df8489fa316982f409161b9ca2e408b44a4",
276
+ "comment": "chore: add bundle size testing."
277
+ }
278
+ ]
279
+ }
280
+ },
281
+ {
282
+ "date": "Mon, 24 Jul 2023 22:38:51 GMT",
283
+ "tag": "@fluentai/prompt-starter_v0.1.1",
284
+ "version": "0.1.1",
285
+ "comments": {
286
+ "patch": [
287
+ {
288
+ "author": "mgodbolt@microsoft.com",
289
+ "package": "@fluentai/prompt-starter",
290
+ "commit": "1704c33c4700cb732101afd3137ac877e3fb5463",
291
+ "comment": "chore: Move PromptStarter to stable."
292
+ }
293
+ ]
294
+ }
295
+ }
296
+ ]
297
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,98 @@
1
+ # Change Log - @fluentui-copilot/react-prompt-starter
2
+
3
+ This log was last generated on Wed, 13 Mar 2024 04:09:45 GMT and should not be manually modified.
4
+
5
+ <!-- Start content -->
6
+
7
+ ## [0.0.0-nightly-20240313-0404-8abc883d.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240313-0404-8abc883d.1)
8
+
9
+ Wed, 13 Mar 2024 04:09:45 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.4.1..@fluentui-copilot/react-prompt-starter_v0.0.0-nightly-20240313-0404-8abc883d.1)
11
+
12
+ ### Changes
13
+
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-20240313-0404-8abc883d.1 ([commit](https://github.com/microsoft/fluentai/commit/6953fd36fa1f984fe4271557d1ab88e559056e47) by beachball)
16
+
17
+ ## [0.4.0](https://github.com/microsoft/fluentai/tree/@fluentai/prompt-starter_v0.4.0)
18
+
19
+ Thu, 15 Feb 2024 20:24:48 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.3.3..@fluentai/prompt-starter_v0.4.0)
21
+
22
+ ### Minor changes
23
+
24
+ - chore: initial release to NPM. ([PR #1358](https://github.com/microsoft/fluentai/pull/1358) by tristan.watanabe@gmail.com)
25
+
26
+ ## [0.3.3](https://github.com/microsoft/fluentai/tree/@fluentai/prompt-starter_v0.3.3)
27
+
28
+ Fri, 02 Feb 2024 01:07:14 GMT
29
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.3.1..@fluentai/prompt-starter_v0.3.3)
30
+
31
+ ### Patches
32
+
33
+ - fix: add missing peer dependencies from other Fluent AI package dependency. ([PR #1329](https://github.com/microsoft/fluentai/pull/1329) by tristan.watanabe@gmail.com)
34
+
35
+ ## [0.3.0](https://github.com/microsoft/fluentai/tree/@fluentai/prompt-starter_v0.3.0)
36
+
37
+ Wed, 15 Nov 2023 00:55:21 GMT
38
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.2.1..@fluentai/prompt-starter_v0.3.0)
39
+
40
+ ### Minor changes
41
+
42
+ - chore: move @fluentui dependencies to peer dependencies. ([PR #979](https://github.com/microsoft/fluentai/pull/979) by tristan.watanabe@gmail.com)
43
+ - Bump @fluentai/provider to v0.6.0 ([PR #1169](https://github.com/microsoft/fluentai/pull/1169) by beachball)
44
+
45
+ ### Patches
46
+
47
+ - chore: Migrate PromptStarter to new slots API. ([PR #1104](https://github.com/microsoft/fluentai/pull/1104) by owcampbe@microsoft.com)
48
+ - chore: bump peer deep range to latest @fluentui/react-components 9.37.3. ([PR #1125](https://github.com/microsoft/fluentai/pull/1125) by tristan.watanabe@gmail.com)
49
+
50
+ ## [0.2.1](https://github.com/microsoft/fluentai/tree/@fluentai/prompt-starter_v0.2.1)
51
+
52
+ Mon, 25 Sep 2023 20:31:08 GMT
53
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.2.0..@fluentai/prompt-starter_v0.2.1)
54
+
55
+ ### Patches
56
+
57
+ - fix: bump swc core to mitigate transpilation memory leaks. ([PR #972](https://github.com/microsoft/fluentai/pull/972) by tristan.watanabe@gmail.com)
58
+ - Bump @fluentai/provider to v0.5.1 ([commit](https://github.com/microsoft/fluentai/commit/f633e55414cd3ed596793f7e8916d87a242d8c0d) by beachball)
59
+
60
+ ## [0.2.0](https://github.com/microsoft/fluentai/tree/@fluentai/prompt-starter_v0.2.0)
61
+
62
+ Fri, 22 Sep 2023 02:11:56 GMT
63
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.1.3..@fluentai/prompt-starter_v0.2.0)
64
+
65
+ ### Minor changes
66
+
67
+ - Bump @fluentai/provider to v0.5.0 ([PR #961](https://github.com/microsoft/fluentai/pull/961) by beachball)
68
+
69
+ ### Patches
70
+
71
+ - chore: bump fluentui v9 dependencies to latest. ([PR #928](https://github.com/microsoft/fluentai/pull/928) by tristan.watanabe@gmail.com)
72
+
73
+ ## [0.1.3](https://github.com/microsoft/fluentai/tree/@fluentai/prompt-starter_v0.1.3)
74
+
75
+ Fri, 08 Sep 2023 18:32:55 GMT
76
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.1.2..@fluentai/prompt-starter_v0.1.3)
77
+
78
+ ### Patches
79
+
80
+ - test: add playwright e2e testing setup and WCAG testing. ([PR #904](https://github.com/microsoft/fluentai/pull/904) by tristan.watanabe@gmail.com)
81
+
82
+ ## [0.1.2](https://github.com/microsoft/fluentai/tree/@fluentai/prompt-starter_v0.1.2)
83
+
84
+ Tue, 22 Aug 2023 23:54:16 GMT
85
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentai/prompt-starter_v0.1.1..@fluentai/prompt-starter_v0.1.2)
86
+
87
+ ### Patches
88
+
89
+ - add useCustomStyleHook to all components ([PR #843](https://github.com/microsoft/fluentai/pull/843) by eysjiang@gmail.com)
90
+ - Bump @fluentai/provider to v0.4.0 ([PR #878](https://github.com/microsoft/fluentai/pull/878) by beachball)
91
+
92
+ ## [0.1.1](https://github.com/microsoft/fluentai/tree/@fluentai/prompt-starter_v0.1.1)
93
+
94
+ Mon, 24 Jul 2023 22:38:51 GMT
95
+
96
+ ### Patches
97
+
98
+ - chore: Move PromptStarter to stable. ([PR #730](https://github.com/microsoft/fluentai/pull/730) by mgodbolt@microsoft.com)
package/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ @fluentui-copilot/react-prompt-starter
2
+
3
+ MIT License
4
+
5
+ Copyright (c) Microsoft Corporation.
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @fluentui-copilot/react-prompt-starter
2
+
3
+ **For internal use only. External use is not supported at this time.**
4
+
5
+ **Prompt Starter components for [Fluent AI React](https://ai.fluentui.dev/)**
@@ -0,0 +1,45 @@
1
+ import type { BadgeProps } from '@fluentui/react-components';
2
+ import type { ComponentProps } from '@fluentui/react-components';
3
+ import type { ComponentState } from '@fluentui/react-components';
4
+ import type { ForwardRefComponent } from '@fluentui/react-components';
5
+ import type { Slot } from '@fluentui/react-components';
6
+ import type { SlotClassNames } from '@fluentui/react-components';
7
+
8
+ export declare const PromptStarter: ForwardRefComponent<PromptStarterProps>;
9
+
10
+ export declare const promptStarterClassNames: SlotClassNames<PromptStarterSlots>;
11
+
12
+ /**
13
+ * PromptStarter Props
14
+ */
15
+ export declare type PromptStarterProps = ComponentProps<PromptStarterSlots> & {};
16
+
17
+ export declare type PromptStarterSlots = {
18
+ root: Slot<'button'>;
19
+ icon: NonNullable<Slot<'span'>>;
20
+ category: NonNullable<Slot<'span'>>;
21
+ prompt?: Slot<'span'>;
22
+ badge?: Slot<BadgeProps>;
23
+ };
24
+
25
+ /**
26
+ * State used in rendering PromptStarter
27
+ */
28
+ export declare type PromptStarterState = ComponentState<PromptStarterSlots>;
29
+
30
+ export declare const renderPromptStarter_unstable: (state: PromptStarterState) => JSX.Element;
31
+
32
+ /**
33
+ * Create the state required to render PromptStarter.
34
+ *
35
+ * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,
36
+ * before being passed to renderPromptStarter_unstable.
37
+ *
38
+ * @param props - props from this instance of PromptStarter
39
+ * @param ref - reference to root HTMLElement of PromptStarter
40
+ */
41
+ export declare const usePromptStarter_unstable: (props: PromptStarterProps, ref: React.Ref<HTMLElement>) => PromptStarterState;
42
+
43
+ export declare const usePromptStarterStyles_unstable: (state: PromptStarterState) => PromptStarterState;
44
+
45
+ export { }
@@ -0,0 +1,2 @@
1
+ export * from './components/PromptStarter/index';
2
+ //# sourceMappingURL=PromptStarter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PromptStarter.ts"],"sourcesContent":["export * from './components/PromptStarter/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { usePromptStarter_unstable } from './usePromptStarter';
3
+ import { renderPromptStarter_unstable } from './renderPromptStarter';
4
+ import { usePromptStarterStyles_unstable } from './usePromptStarterStyles';
5
+ import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
+ export const PromptStarter = /*#__PURE__*/React.forwardRef((props, ref) => {
7
+ const state = usePromptStarter_unstable(props, ref);
8
+ usePromptStarterStyles_unstable(state);
9
+ useCustomStyleHook('usePromptStarterStyles')(state);
10
+ return renderPromptStarter_unstable(state);
11
+ });
12
+ PromptStarter.displayName = 'PromptStarter';
13
+ //# sourceMappingURL=PromptStarter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PromptStarter.tsx"],"sourcesContent":["import * as React from 'react';\nimport { usePromptStarter_unstable } from './usePromptStarter';\nimport { renderPromptStarter_unstable } from './renderPromptStarter';\nimport { usePromptStarterStyles_unstable } from './usePromptStarterStyles';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\nimport type { PromptStarterProps } from './PromptStarter.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\n\nexport const PromptStarter: ForwardRefComponent<PromptStarterProps> = React.forwardRef((props, ref) => {\n const state = usePromptStarter_unstable(props, ref);\n\n usePromptStarterStyles_unstable(state);\n useCustomStyleHook('usePromptStarterStyles')(state);\n\n return renderPromptStarter_unstable(state);\n});\n\nPromptStarter.displayName = 'PromptStarter';\n"],"names":["React","usePromptStarter_unstable","renderPromptStarter_unstable","usePromptStarterStyles_unstable","useCustomStyleHook","PromptStarter","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,4BAA4B,QAAQ,wBAAwB;AACrE,SAASC,+BAA+B,QAAQ,2BAA2B;AAC3E,SAASC,kBAAkB,QAAQ,mCAAmC;AAItE,OAAO,MAAMC,8BAAyDL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQR,0BAA0BM,OAAOC;IAE/CL,gCAAgCM;IAChCL,mBAAmB,0BAA0BK;IAE7C,OAAOP,6BAA6BO;AACtC,GAAG;AAEHJ,cAAcK,WAAW,GAAG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PromptStarter.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PromptStarter.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot, BadgeProps } from '@fluentui/react-components';\n\nexport type PromptStarterSlots = {\n root: Slot<'button'>;\n icon: NonNullable<Slot<'span'>>;\n category: NonNullable<Slot<'span'>>;\n prompt?: Slot<'span'>;\n badge?: Slot<BadgeProps>;\n};\n\n/**\n * PromptStarter Props\n */\nexport type PromptStarterProps = ComponentProps<PromptStarterSlots> & {};\n\n/**\n * State used in rendering PromptStarter\n */\nexport type PromptStarterState = ComponentState<PromptStarterSlots>;\n"],"names":[],"mappings":"AAAA,WAkBoE"}
@@ -0,0 +1,6 @@
1
+ export * from './PromptStarter';
2
+ export * from './PromptStarter.types';
3
+ export * from './renderPromptStarter';
4
+ export * from './usePromptStarter';
5
+ export * from './usePromptStarterStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './PromptStarter';\nexport * from './PromptStarter.types';\nexport * from './renderPromptStarter';\nexport * from './usePromptStarter';\nexport * from './usePromptStarterStyles';\n"],"names":[],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,wBAAwB;AACtC,cAAc,wBAAwB;AACtC,cAAc,qBAAqB;AACnC,cAAc,2BAA2B"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
+ import { assertSlots } from '@fluentui/react-components';
3
+ export const renderPromptStarter_unstable = state => {
4
+ assertSlots(state);
5
+ return /*#__PURE__*/_jsxs(state.root, {
6
+ children: [/*#__PURE__*/_jsx(state.icon, {}), /*#__PURE__*/_jsxs(state.category, {
7
+ children: [state.category.children, " ", state.badge && /*#__PURE__*/_jsx(state.badge, {})]
8
+ }), state.prompt && /*#__PURE__*/_jsx(state.prompt, {})]
9
+ });
10
+ };
11
+ //# sourceMappingURL=renderPromptStarter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderPromptStarter.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { PromptStarterState, PromptStarterSlots } from './PromptStarter.types';\n\nexport const renderPromptStarter_unstable = (state: PromptStarterState) => {\n assertSlots<PromptStarterSlots>(state);\n\n return (\n <state.root>\n <state.icon />\n <state.category>\n {state.category.children} {state.badge && <state.badge />}\n </state.category>\n {state.prompt && <state.prompt />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderPromptStarter_unstable","state","root","icon","category","children","badge","prompt"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,6BAA6B;AAGzD,OAAO,MAAMC,+BAA+B,CAACC;IAC3CF,YAAgCE;IAEhC,qBACE,MAACA,MAAMC,IAAI;;0BACT,KAACD,MAAME,IAAI;0BACX,MAACF,MAAMG,QAAQ;;oBACZH,MAAMG,QAAQ,CAACC,QAAQ;oBAAC;oBAAEJ,MAAMK,KAAK,kBAAI,KAACL,MAAMK,KAAK;;;YAEvDL,MAAMM,MAAM,kBAAI,KAACN,MAAMM,MAAM;;;AAGpC,EAAE"}
@@ -0,0 +1,43 @@
1
+ import { Badge, getNativeElementProps, slot } from '@fluentui/react-components';
2
+ /**
3
+ * Create the state required to render PromptStarter.
4
+ *
5
+ * The returned state can be modified with hooks such as usePromptStarterStyles_unstable,
6
+ * before being passed to renderPromptStarter_unstable.
7
+ *
8
+ * @param props - props from this instance of PromptStarter
9
+ * @param ref - reference to root HTMLElement of PromptStarter
10
+ */
11
+ export const usePromptStarter_unstable = (props, ref) => {
12
+ return {
13
+ components: {
14
+ root: 'button',
15
+ icon: 'span',
16
+ category: 'span',
17
+ prompt: 'span',
18
+ badge: Badge
19
+ },
20
+ root: slot.always(getNativeElementProps('button', {
21
+ ref,
22
+ ...props
23
+ }), {
24
+ elementType: 'button'
25
+ }),
26
+ icon: slot.always(props.icon, {
27
+ elementType: 'span'
28
+ }),
29
+ category: slot.always(props.category, {
30
+ elementType: 'span'
31
+ }),
32
+ prompt: slot.optional(props.prompt, {
33
+ elementType: 'span'
34
+ }),
35
+ badge: slot.optional(props.badge, {
36
+ defaultProps: {
37
+ appearance: 'tint'
38
+ },
39
+ elementType: Badge
40
+ })
41
+ };
42
+ };
43
+ //# sourceMappingURL=usePromptStarter.js.map
@@ -0,0 +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"}