@instructure/platform-institutional-tagging 2.0.0 → 3.0.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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/api/index.d.ts +0 -1
  4. package/dist/api/index.d.ts.map +1 -1
  5. package/dist/api/schemas.d.ts +349 -0
  6. package/dist/api/schemas.d.ts.map +1 -0
  7. package/dist/api/types.d.ts +4 -7
  8. package/dist/api/types.d.ts.map +1 -1
  9. package/dist/api/utils.d.ts.map +1 -1
  10. package/dist/components/Category/CategoryListItem.d.ts.map +1 -1
  11. package/dist/components/NewCategoryButton/NewCategoryButton.d.ts +3 -0
  12. package/dist/components/NewCategoryButton/NewCategoryButton.d.ts.map +1 -0
  13. package/dist/components/NewCategoryButton/index.d.ts +2 -0
  14. package/dist/components/NewCategoryButton/index.d.ts.map +1 -0
  15. package/dist/components/NewCategoryButton/styles.d.ts +7 -0
  16. package/dist/components/NewCategoryButton/styles.d.ts.map +1 -0
  17. package/dist/components/NewCategoryButton/useNewCategoryPopover.d.ts +15 -0
  18. package/dist/components/NewCategoryButton/useNewCategoryPopover.d.ts.map +1 -0
  19. package/dist/components/SearchAndFilterSection/SearchAndFilterSection.d.ts +3 -0
  20. package/dist/components/SearchAndFilterSection/SearchAndFilterSection.d.ts.map +1 -1
  21. package/dist/components/index.d.ts +1 -0
  22. package/dist/components/index.d.ts.map +1 -1
  23. package/dist/constants/i18n.d.ts +5 -0
  24. package/dist/constants/i18n.d.ts.map +1 -1
  25. package/dist/hooks/useAccountTagsScreen.d.ts +3 -0
  26. package/dist/hooks/useAccountTagsScreen.d.ts.map +1 -1
  27. package/dist/hooks/useCreateCategory.d.ts +14 -0
  28. package/dist/hooks/useCreateCategory.d.ts.map +1 -0
  29. package/dist/hooks/useFetchTagsForCategory.d.ts +1 -1
  30. package/dist/hooks/useFetchTagsForCategory.d.ts.map +1 -1
  31. package/dist/index.js +10392 -9335
  32. package/dist/screens/AccountTags/AccountTags.d.ts.map +1 -1
  33. package/dist/services/association.d.ts +2 -2
  34. package/dist/services/association.d.ts.map +1 -1
  35. package/dist/services/category.d.ts +3 -2
  36. package/dist/services/category.d.ts.map +1 -1
  37. package/dist/services/tag.d.ts +4 -3
  38. package/dist/services/tag.d.ts.map +1 -1
  39. package/dist/services/users.d.ts +2 -2
  40. package/dist/services/users.d.ts.map +1 -1
  41. package/dist/types/category.d.ts +2 -1
  42. package/dist/types/category.d.ts.map +1 -1
  43. package/dist/types/pageable.d.ts +8 -0
  44. package/dist/types/pageable.d.ts.map +1 -0
  45. package/dist/types/tag.d.ts +2 -1
  46. package/dist/types/tag.d.ts.map +1 -1
  47. package/dist/utils/pagination.d.ts +4 -0
  48. package/dist/utils/pagination.d.ts.map +1 -0
  49. package/locales/en.json +5 -0
  50. package/package.json +25 -22
  51. package/dist/api/client.d.ts +0 -9
  52. package/dist/api/client.d.ts.map +0 -1
package/README.md CHANGED
@@ -83,4 +83,4 @@ pnpm locales:sort
83
83
 
84
84
  # Validate only (sort check + unused key warning)
85
85
  pnpm locales:validate
86
- ```
86
+ ```
package/dist/App.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAkBvB,CAAA"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAkBvB,CAAA"}
@@ -1,5 +1,4 @@
1
1
  export { ACCOUNT_ID, accountBase } from './constants';
2
2
  export { HttpStatus } from './types';
3
3
  export { isApiError } from './utils';
4
- export * from './client';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,349 @@
1
+ import { ContextType } from '../types/context';
2
+ import { WorkflowState } from '../types/state';
3
+ import { z } from 'zod';
4
+ export declare const categorySchema: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ name: z.ZodString;
7
+ description: z.ZodString;
8
+ account_id: z.ZodNumber;
9
+ root_account_id: z.ZodNumber;
10
+ workflow_state: z.ZodNativeEnum<typeof WorkflowState>;
11
+ tags_count: z.ZodNumber;
12
+ created_at: z.ZodString;
13
+ updated_at: z.ZodString;
14
+ created_by: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodNull]>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ id: number;
17
+ name: string;
18
+ description: string;
19
+ account_id: number;
20
+ root_account_id: number;
21
+ workflow_state: WorkflowState;
22
+ created_at: string;
23
+ updated_at: string;
24
+ tags_count: number;
25
+ created_by?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
26
+ }, {
27
+ id: number;
28
+ name: string;
29
+ description: string;
30
+ account_id: number;
31
+ root_account_id: number;
32
+ workflow_state: WorkflowState;
33
+ created_at: string;
34
+ updated_at: string;
35
+ tags_count: number;
36
+ created_by?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
37
+ }>;
38
+ export declare const tagSchema: z.ZodObject<{
39
+ id: z.ZodNumber;
40
+ name: z.ZodString;
41
+ description: z.ZodString;
42
+ sis_source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ category_id: z.ZodNumber;
44
+ account_id: z.ZodNumber;
45
+ root_account_id: z.ZodNumber;
46
+ associations_count: z.ZodOptional<z.ZodNumber>;
47
+ workflow_state: z.ZodNativeEnum<typeof WorkflowState>;
48
+ created_at: z.ZodOptional<z.ZodString>;
49
+ updated_at: z.ZodOptional<z.ZodString>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ id: number;
52
+ name: string;
53
+ description: string;
54
+ category_id: number;
55
+ account_id: number;
56
+ root_account_id: number;
57
+ workflow_state: WorkflowState;
58
+ sis_source_id?: string | null | undefined;
59
+ associations_count?: number | undefined;
60
+ created_at?: string | undefined;
61
+ updated_at?: string | undefined;
62
+ }, {
63
+ id: number;
64
+ name: string;
65
+ description: string;
66
+ category_id: number;
67
+ account_id: number;
68
+ root_account_id: number;
69
+ workflow_state: WorkflowState;
70
+ sis_source_id?: string | null | undefined;
71
+ associations_count?: number | undefined;
72
+ created_at?: string | undefined;
73
+ updated_at?: string | undefined;
74
+ }>;
75
+ export declare const tagAssociationSchema: z.ZodObject<{
76
+ id: z.ZodNumber;
77
+ institutional_tag: z.ZodObject<{
78
+ id: z.ZodNumber;
79
+ name: z.ZodString;
80
+ description: z.ZodString;
81
+ sis_source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ category_id: z.ZodNumber;
83
+ account_id: z.ZodNumber;
84
+ root_account_id: z.ZodNumber;
85
+ associations_count: z.ZodOptional<z.ZodNumber>;
86
+ workflow_state: z.ZodNativeEnum<typeof WorkflowState>;
87
+ created_at: z.ZodOptional<z.ZodString>;
88
+ updated_at: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ id: number;
91
+ name: string;
92
+ description: string;
93
+ category_id: number;
94
+ account_id: number;
95
+ root_account_id: number;
96
+ workflow_state: WorkflowState;
97
+ sis_source_id?: string | null | undefined;
98
+ associations_count?: number | undefined;
99
+ created_at?: string | undefined;
100
+ updated_at?: string | undefined;
101
+ }, {
102
+ id: number;
103
+ name: string;
104
+ description: string;
105
+ category_id: number;
106
+ account_id: number;
107
+ root_account_id: number;
108
+ workflow_state: WorkflowState;
109
+ sis_source_id?: string | null | undefined;
110
+ associations_count?: number | undefined;
111
+ created_at?: string | undefined;
112
+ updated_at?: string | undefined;
113
+ }>;
114
+ context_type: z.ZodNativeEnum<typeof ContextType>;
115
+ context_id: z.ZodNumber;
116
+ workflow_state: z.ZodNativeEnum<typeof WorkflowState>;
117
+ created_at: z.ZodOptional<z.ZodString>;
118
+ updated_at: z.ZodOptional<z.ZodString>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ id: number;
121
+ workflow_state: WorkflowState;
122
+ institutional_tag: {
123
+ id: number;
124
+ name: string;
125
+ description: string;
126
+ category_id: number;
127
+ account_id: number;
128
+ root_account_id: number;
129
+ workflow_state: WorkflowState;
130
+ sis_source_id?: string | null | undefined;
131
+ associations_count?: number | undefined;
132
+ created_at?: string | undefined;
133
+ updated_at?: string | undefined;
134
+ };
135
+ context_type: ContextType;
136
+ context_id: number;
137
+ created_at?: string | undefined;
138
+ updated_at?: string | undefined;
139
+ }, {
140
+ id: number;
141
+ workflow_state: WorkflowState;
142
+ institutional_tag: {
143
+ id: number;
144
+ name: string;
145
+ description: string;
146
+ category_id: number;
147
+ account_id: number;
148
+ root_account_id: number;
149
+ workflow_state: WorkflowState;
150
+ sis_source_id?: string | null | undefined;
151
+ associations_count?: number | undefined;
152
+ created_at?: string | undefined;
153
+ updated_at?: string | undefined;
154
+ };
155
+ context_type: ContextType;
156
+ context_id: number;
157
+ created_at?: string | undefined;
158
+ updated_at?: string | undefined;
159
+ }>;
160
+ export declare const tagUserSchema: z.ZodObject<{
161
+ id: z.ZodNumber;
162
+ name: z.ZodString;
163
+ login_id: z.ZodString;
164
+ sis_user_id: z.ZodOptional<z.ZodString>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ id: number;
167
+ name: string;
168
+ login_id: string;
169
+ sis_user_id?: string | undefined;
170
+ }, {
171
+ id: number;
172
+ name: string;
173
+ login_id: string;
174
+ sis_user_id?: string | undefined;
175
+ }>;
176
+ export declare const categoryListSchema: z.ZodArray<z.ZodObject<{
177
+ id: z.ZodNumber;
178
+ name: z.ZodString;
179
+ description: z.ZodString;
180
+ account_id: z.ZodNumber;
181
+ root_account_id: z.ZodNumber;
182
+ workflow_state: z.ZodNativeEnum<typeof WorkflowState>;
183
+ tags_count: z.ZodNumber;
184
+ created_at: z.ZodString;
185
+ updated_at: z.ZodString;
186
+ created_by: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodNull]>>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ id: number;
189
+ name: string;
190
+ description: string;
191
+ account_id: number;
192
+ root_account_id: number;
193
+ workflow_state: WorkflowState;
194
+ created_at: string;
195
+ updated_at: string;
196
+ tags_count: number;
197
+ created_by?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
198
+ }, {
199
+ id: number;
200
+ name: string;
201
+ description: string;
202
+ account_id: number;
203
+ root_account_id: number;
204
+ workflow_state: WorkflowState;
205
+ created_at: string;
206
+ updated_at: string;
207
+ tags_count: number;
208
+ created_by?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
209
+ }>, "many">;
210
+ export declare const tagListSchema: z.ZodArray<z.ZodObject<{
211
+ id: z.ZodNumber;
212
+ name: z.ZodString;
213
+ description: z.ZodString;
214
+ sis_source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ category_id: z.ZodNumber;
216
+ account_id: z.ZodNumber;
217
+ root_account_id: z.ZodNumber;
218
+ associations_count: z.ZodOptional<z.ZodNumber>;
219
+ workflow_state: z.ZodNativeEnum<typeof WorkflowState>;
220
+ created_at: z.ZodOptional<z.ZodString>;
221
+ updated_at: z.ZodOptional<z.ZodString>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ id: number;
224
+ name: string;
225
+ description: string;
226
+ category_id: number;
227
+ account_id: number;
228
+ root_account_id: number;
229
+ workflow_state: WorkflowState;
230
+ sis_source_id?: string | null | undefined;
231
+ associations_count?: number | undefined;
232
+ created_at?: string | undefined;
233
+ updated_at?: string | undefined;
234
+ }, {
235
+ id: number;
236
+ name: string;
237
+ description: string;
238
+ category_id: number;
239
+ account_id: number;
240
+ root_account_id: number;
241
+ workflow_state: WorkflowState;
242
+ sis_source_id?: string | null | undefined;
243
+ associations_count?: number | undefined;
244
+ created_at?: string | undefined;
245
+ updated_at?: string | undefined;
246
+ }>, "many">;
247
+ export declare const tagAssociationListSchema: z.ZodArray<z.ZodObject<{
248
+ id: z.ZodNumber;
249
+ institutional_tag: z.ZodObject<{
250
+ id: z.ZodNumber;
251
+ name: z.ZodString;
252
+ description: z.ZodString;
253
+ sis_source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ category_id: z.ZodNumber;
255
+ account_id: z.ZodNumber;
256
+ root_account_id: z.ZodNumber;
257
+ associations_count: z.ZodOptional<z.ZodNumber>;
258
+ workflow_state: z.ZodNativeEnum<typeof WorkflowState>;
259
+ created_at: z.ZodOptional<z.ZodString>;
260
+ updated_at: z.ZodOptional<z.ZodString>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ id: number;
263
+ name: string;
264
+ description: string;
265
+ category_id: number;
266
+ account_id: number;
267
+ root_account_id: number;
268
+ workflow_state: WorkflowState;
269
+ sis_source_id?: string | null | undefined;
270
+ associations_count?: number | undefined;
271
+ created_at?: string | undefined;
272
+ updated_at?: string | undefined;
273
+ }, {
274
+ id: number;
275
+ name: string;
276
+ description: string;
277
+ category_id: number;
278
+ account_id: number;
279
+ root_account_id: number;
280
+ workflow_state: WorkflowState;
281
+ sis_source_id?: string | null | undefined;
282
+ associations_count?: number | undefined;
283
+ created_at?: string | undefined;
284
+ updated_at?: string | undefined;
285
+ }>;
286
+ context_type: z.ZodNativeEnum<typeof ContextType>;
287
+ context_id: z.ZodNumber;
288
+ workflow_state: z.ZodNativeEnum<typeof WorkflowState>;
289
+ created_at: z.ZodOptional<z.ZodString>;
290
+ updated_at: z.ZodOptional<z.ZodString>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ id: number;
293
+ workflow_state: WorkflowState;
294
+ institutional_tag: {
295
+ id: number;
296
+ name: string;
297
+ description: string;
298
+ category_id: number;
299
+ account_id: number;
300
+ root_account_id: number;
301
+ workflow_state: WorkflowState;
302
+ sis_source_id?: string | null | undefined;
303
+ associations_count?: number | undefined;
304
+ created_at?: string | undefined;
305
+ updated_at?: string | undefined;
306
+ };
307
+ context_type: ContextType;
308
+ context_id: number;
309
+ created_at?: string | undefined;
310
+ updated_at?: string | undefined;
311
+ }, {
312
+ id: number;
313
+ workflow_state: WorkflowState;
314
+ institutional_tag: {
315
+ id: number;
316
+ name: string;
317
+ description: string;
318
+ category_id: number;
319
+ account_id: number;
320
+ root_account_id: number;
321
+ workflow_state: WorkflowState;
322
+ sis_source_id?: string | null | undefined;
323
+ associations_count?: number | undefined;
324
+ created_at?: string | undefined;
325
+ updated_at?: string | undefined;
326
+ };
327
+ context_type: ContextType;
328
+ context_id: number;
329
+ created_at?: string | undefined;
330
+ updated_at?: string | undefined;
331
+ }>, "many">;
332
+ export declare const tagUserListSchema: z.ZodArray<z.ZodObject<{
333
+ id: z.ZodNumber;
334
+ name: z.ZodString;
335
+ login_id: z.ZodString;
336
+ sis_user_id: z.ZodOptional<z.ZodString>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ id: number;
339
+ name: string;
340
+ login_id: string;
341
+ sis_user_id?: string | undefined;
342
+ }, {
343
+ id: number;
344
+ name: string;
345
+ login_id: string;
346
+ sis_user_id?: string | undefined;
347
+ }>, "many">;
348
+ export declare const nullSchema: z.ZodNull;
349
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/api/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWzB,CAAA;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYpB,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;EAKxB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAA0B,CAAA;AACzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAqB,CAAA;AAC/C,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAgC,CAAA;AACrE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;WAAyB,CAAA;AAGvD,eAAO,MAAM,UAAU,WAAW,CAAA"}
@@ -1,11 +1,8 @@
1
- export interface PaginatedResponse<T> {
1
+ import { ParsedLinks } from '@instructure/platform-canvas-fetch';
2
+ export interface PagedResponse<T> {
2
3
  data: T[];
3
- meta: {
4
- page: number;
5
- per_page: number;
6
- total: number;
7
- total_pages: number;
8
- };
4
+ link?: ParsedLinks;
5
+ total: number;
9
6
  }
10
7
  export declare enum HttpStatus {
11
8
  BadRequest = 400,
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CAC7E;AAED,oBAAY,UAAU;IACpB,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,SAAS,MAAM;IACf,QAAQ,MAAM;IACd,QAAQ,MAAM;IACd,mBAAmB,MAAM;CAC1B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAErE,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,oBAAY,UAAU;IACpB,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,SAAS,MAAM;IACf,QAAQ,MAAM;IACd,QAAQ,MAAM;IACd,mBAAmB,MAAM;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/api/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,EAAE,QAAQ,MAAM,KAAG,OACI,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/api/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,EAAE,QAAQ,MAAM,KAAG,OACE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryListItem.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryListItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgB5D,CAAA"}
1
+ {"version":3,"file":"CategoryListItem.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryListItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiB5D,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const NewCategoryButton: React.FC;
3
+ //# sourceMappingURL=NewCategoryButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewCategoryButton.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/NewCategoryButton.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAiErC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { NewCategoryButton } from './NewCategoryButton';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export declare const PopoverContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const FormWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const NewCategoryButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
+ export declare const ButtonRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const CancelButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
6
+ export declare const SaveButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
7
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,6NAQ1B,CAAA;AAED,eAAO,MAAM,WAAW,6NAEvB,CAAA;AAED,eAAO,MAAM,wBAAwB,+NAEpC,CAAA;AAED,eAAO,MAAM,SAAS,6NAIrB,CAAA;AAED,eAAO,MAAM,mBAAmB,+NAE/B,CAAA;AAED,eAAO,MAAM,iBAAiB,+NAE7B,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { FormMessage } from '@instructure/ui-form-field';
2
+ import { default as React } from 'react';
3
+ export declare const useNewCategoryPopover: () => {
4
+ isOpen: boolean;
5
+ name: string;
6
+ description: string;
7
+ nameMessages: FormMessage[];
8
+ formMessages: FormMessage[];
9
+ onOpen: () => void;
10
+ onClose: () => void;
11
+ onNameChange: (value: string) => void;
12
+ onDescriptionChange: React.Dispatch<React.SetStateAction<string>>;
13
+ onSave: () => void;
14
+ };
15
+ //# sourceMappingURL=useNewCategoryPopover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNewCategoryPopover.d.ts","sourceRoot":"","sources":["../../../src/components/NewCategoryButton/useNewCategoryPopover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAK7D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,qBAAqB;;;;;;;;0BA2BC,MAAM;;;CA8BxC,CAAA"}
@@ -1,7 +1,10 @@
1
+ import { ViewType } from '../../types/state';
1
2
  import { default as React } from 'react';
2
3
  type SearchAndFilterSectionProps = {
3
4
  searchResultCount: number;
4
5
  handleSearchQueryChange: (query: string) => void;
6
+ selectedView: ViewType;
7
+ handleViewTypeChange: (view: ViewType) => void;
5
8
  };
6
9
  export declare const SearchAndFilterSection: React.FC<SearchAndFilterSectionProps>;
7
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"SearchAndFilterSection.d.ts","sourceRoot":"","sources":["../../../src/components/SearchAndFilterSection/SearchAndFilterSection.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAA;IACzB,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACjD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAmDxE,CAAA"}
1
+ {"version":3,"file":"SearchAndFilterSection.d.ts","sourceRoot":"","sources":["../../../src/components/SearchAndFilterSection/SearchAndFilterSection.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAA;IACzB,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChD,YAAY,EAAE,QAAQ,CAAA;IACtB,oBAAoB,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAgDxE,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export { AppContainerProvider } from './AppContainer';
2
+ export { NewCategoryButton } from './NewCategoryButton';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -11,13 +11,16 @@ export declare const i18nKeys: {
11
11
  readonly category: "Category";
12
12
  readonly categoryArchived: "Archived";
13
13
  readonly categoryDescriptionLabel: "Category description";
14
+ readonly categoryDescriptionPlaceholder: "Briefly describe this category";
14
15
  readonly categoryMenuLabel: "Actions for %{category}";
15
16
  readonly categoryNameLabel: "Category name";
17
+ readonly categoryNamePlaceholder: "Enter a name";
16
18
  readonly categoryPlaceholder: "Select a category";
17
19
  readonly createNewCategoryOption: "Create new category";
18
20
  readonly expandCategory: "Expand category";
19
21
  readonly expendAll: "Expand all";
20
22
  readonly newCategory: "New category";
23
+ readonly newCategoryDescriptionLabel: "Description";
21
24
  readonly searchResults: "%{resultCount} results found";
22
25
  readonly selectCategoryToMove: "Select a new category to move";
23
26
  readonly sortCategories: "Sort categories";
@@ -52,9 +55,11 @@ export declare const i18nKeys: {
52
55
  readonly archiveTagFailed: "Failed to archive tag.";
53
56
  readonly archiveTagNotFound: "Tag not found or already archived.";
54
57
  readonly archiveTagUnprocessable: "This tag cannot be archived in its current state.";
58
+ readonly categoryAlreadyExists: "This category name already exists.";
55
59
  readonly categoryNameRequired: "Category name is required.";
56
60
  readonly categoryRequired: "Category is required.";
57
61
  readonly loadCategories: "Failed to load categories: %{errorMessage}";
62
+ readonly saveCategoryFailed: "Failed to save category. Please try again.";
58
63
  readonly tagAlreadyExists: "This tag name already exists.";
59
64
  readonly tagMoveConflict: "A tag with this name already exists in the selected category.";
60
65
  readonly tagMoveFailed: "Failed to move the tag. Please try again.";
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/constants/i18n.ts"],"names":[],"mappings":"AA8FA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAA"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/constants/i18n.ts"],"names":[],"mappings":"AAmGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { ViewType } from '../types/state';
1
2
  export declare const useAccountTagsScreen: () => {
2
3
  shownCategories: import('../types').CategoryType[];
3
4
  isPending: boolean;
@@ -7,6 +8,8 @@ export declare const useAccountTagsScreen: () => {
7
8
  totalPages: number;
8
9
  handlePageChange: (page: number) => void;
9
10
  handleSearchQueryChange: (query: string) => void;
11
+ handleViewTypeChange: (view: ViewType) => void;
12
+ selectedView: ViewType;
10
13
  searchResultCount: number;
11
14
  };
12
15
  //# sourceMappingURL=useAccountTagsScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAccountTagsScreen.d.ts","sourceRoot":"","sources":["../../src/hooks/useAccountTagsScreen.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;WAsCb,KAAK,GAAG,IAAI;;;;qCAzBU,MAAM;;CAgC/C,CAAA"}
1
+ {"version":3,"file":"useAccountTagsScreen.d.ts","sourceRoot":"","sources":["../../src/hooks/useAccountTagsScreen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAWtD,eAAO,MAAM,oBAAoB;;;;WA8Cb,KAAK,GAAG,IAAI;;;;qCAhCU,MAAM;iCAIV,QAAQ;;;CAqC7C,CAAA"}
@@ -0,0 +1,14 @@
1
+ type CreateCategoryPayload = {
2
+ name: string;
3
+ description?: string;
4
+ };
5
+ type UseCreateCategoryOptions = {
6
+ onSuccess: () => void;
7
+ onError: (error: unknown) => void;
8
+ };
9
+ export declare const useCreateCategory: ({ onSuccess, onError }: UseCreateCategoryOptions) => {
10
+ create: import('@tanstack/react-query').UseMutateFunction<import('../types').CategoryType, unknown, CreateCategoryPayload, unknown>;
11
+ isPending: boolean;
12
+ };
13
+ export {};
14
+ //# sourceMappingURL=useCreateCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateCategory.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreateCategory.ts"],"names":[],"mappings":"AAGA,KAAK,qBAAqB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnE,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,wBAAwB,wBAAwB;;;CAajF,CAAA"}
@@ -1,4 +1,4 @@
1
- export declare const useFetchTagsForCategory: (categoryId: number) => {
1
+ export declare const useFetchTagsForCategory: (categoryId: number, workflowState?: string) => {
2
2
  tags: import('../types').TagType[];
3
3
  isPending: boolean;
4
4
  currentPage: number;
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchTagsForCategory.d.ts","sourceRoot":"","sources":["../../src/hooks/useFetchTagsForCategory.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM;;;;;;CAgBzD,CAAA"}
1
+ {"version":3,"file":"useFetchTagsForCategory.d.ts","sourceRoot":"","sources":["../../src/hooks/useFetchTagsForCategory.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,EAAE,gBAAgB,MAAM;;;;;;CAiBjF,CAAA"}