@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
@@ -1 +1 @@
1
- {"version":3,"file":"AccountTags.d.ts","sourceRoot":"","sources":["../../../src/screens/AccountTags/AccountTags.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EA8B/B,CAAA"}
1
+ {"version":3,"file":"AccountTags.d.ts","sourceRoot":"","sources":["../../../src/screens/AccountTags/AccountTags.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAkC/B,CAAA"}
@@ -1,6 +1,6 @@
1
- import { PaginatedResponse } from '../api/types';
1
+ import { PagedResponse } from '../api/types';
2
2
  import { TagAssociationType } from '../types/application';
3
3
  export declare const removeTagAssociation: (tagId: number, associationId: number) => Promise<void>;
4
- export declare const fetchUserTagAssociations: (userId: number, page?: number, perPage?: number, signal?: AbortSignal) => Promise<PaginatedResponse<TagAssociationType>>;
4
+ export declare const fetchUserTagAssociations: (userId: number, page?: number, perPage?: number, signal?: AbortSignal) => Promise<PagedResponse<TagAssociationType>>;
5
5
  export declare const applyTagToUser: (tagId: number, userId: number) => Promise<TagAssociationType>;
6
6
  //# sourceMappingURL=association.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"association.d.ts","sourceRoot":"","sources":["../../src/services/association.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,EAAE,eAAe,MAAM,KAAG,OAAO,CAAC,IAAI,CAG9D,CAAA;AAE1B,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,aAAQ,EACR,gBAAwB,EACxB,SAAS,WAAW,KACnB,OAAO,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAM1B,CAAA;AAEtB,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,KAAG,OAAO,CAAC,kBAAkB,CAMnE,CAAA"}
1
+ {"version":3,"file":"association.d.ts","sourceRoot":"","sources":["../../src/services/association.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,EAAE,eAAe,MAAM,KAAG,OAAO,CAAC,IAAI,CAI/D,CAAA;AAEzB,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,aAAQ,EACR,gBAAwB,EACxB,SAAS,WAAW,KACnB,OAAO,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAiB3C,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,KAAG,OAAO,CAAC,kBAAkB,CAQpE,CAAA"}
@@ -1,5 +1,6 @@
1
- import { PaginatedResponse } from '../api/types';
1
+ import { PagedResponse } from '../api/types';
2
2
  import { CategoryType } from '../types/category';
3
+ import { WorkflowState } from '../types/state';
3
4
  export declare const fetchCategory: (categoryId: number, signal?: AbortSignal) => Promise<CategoryType>;
4
5
  export declare const createCategory: (body: {
5
6
  name: string;
@@ -10,5 +11,5 @@ export declare const updateCategory: (categoryId: number, body: {
10
11
  description?: string;
11
12
  }) => Promise<CategoryType>;
12
13
  export declare const archiveCategory: (categoryId: number) => Promise<CategoryType>;
13
- export declare const fetchCategories: (page?: number, perPage?: number, signal?: AbortSignal, search?: string) => Promise<PaginatedResponse<CategoryType>>;
14
+ export declare const fetchCategories: (page?: number, perPage?: number, signal?: AbortSignal, search?: string, workflowState?: WorkflowState) => Promise<PagedResponse<CategoryType>>;
14
15
  //# sourceMappingURL=category.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/services/category.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,EAAE,SAAS,WAAW,KAAG,OAAO,CAAC,YAAY,CAGvE,CAAA;AAEtB,eAAO,MAAM,cAAc,GAAI,MAAM;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,KAAG,OAAO,CAAC,YAAY,CAC4D,CAAA;AAEpF,eAAO,MAAM,cAAc,GACzB,YAAY,MAAM,EAClB,MAAM;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,KAC5C,OAAO,CAAC,YAAY,CAC0E,CAAA;AAEjG,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,OAAO,CAAC,YAAY,CAC0B,CAAA;AAEnG,eAAO,MAAM,eAAe,GAC1B,aAAQ,EACR,gBAAwB,EACxB,SAAS,WAAW,EACpB,SAAS,MAAM,KACd,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAMpB,CAAA"}
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/services/category.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,EAAE,SAAS,WAAW,KAAG,OAAO,CAAC,YAAY,CAIxE,CAAA;AAErB,eAAO,MAAM,cAAc,GAAI,MAAM;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,KAAG,OAAO,CAAC,YAAY,CAIH,CAAA;AAErB,eAAO,MAAM,cAAc,GACzB,YAAY,MAAM,EAClB,MAAM;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,KAC5C,OAAO,CAAC,YAAY,CAIF,CAAA;AAErB,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,OAAO,CAAC,YAAY,CAIpD,CAAA;AAErB,eAAO,MAAM,eAAe,GAC1B,aAAQ,EACR,gBAAwB,EACxB,SAAS,WAAW,EACpB,SAAS,MAAM,EACf,gBAAgB,aAAa,KAC5B,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAoBrC,CAAA"}
@@ -1,11 +1,12 @@
1
- import { PaginatedResponse } from '../api/types';
1
+ import { PagedResponse } from '../api/types';
2
2
  import { TagType } from '../types/tag';
3
3
  export declare const fetchTags: (params?: {
4
4
  page?: number;
5
5
  perPage?: number;
6
6
  categoryId?: number;
7
7
  search?: string;
8
- }, signal?: AbortSignal) => Promise<PaginatedResponse<TagType>>;
8
+ workflowState?: string;
9
+ }, signal?: AbortSignal) => Promise<PagedResponse<TagType>>;
9
10
  export declare const fetchTag: (tagId: number, signal?: AbortSignal) => Promise<TagType>;
10
11
  export declare const createTag: (body: {
11
12
  name: string;
@@ -20,5 +21,5 @@ export declare const updateTag: (tagId: number, body: {
20
21
  sis_source_id?: string | null;
21
22
  }) => Promise<TagType>;
22
23
  export declare const archiveTag: (tagId: number) => Promise<TagType>;
23
- export declare const fetchTagsForCategory: (categoryId: number, page?: number, perPage?: number, signal?: AbortSignal) => Promise<PaginatedResponse<TagType>>;
24
+ export declare const fetchTagsForCategory: (categoryId: number, page?: number, perPage?: number, signal?: AbortSignal, workflowState?: string) => Promise<PagedResponse<TagType>>;
24
25
  //# sourceMappingURL=tag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/services/tag.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,eAAO,MAAM,SAAS,GACpB,SAAQ;IACN,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;CACX,EACN,SAAS,WAAW,KACnB,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAWf,CAAA;AAEtB,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,EAAE,SAAS,WAAW,KAAG,OAAO,CAAC,OAAO,CACU,CAAA;AAExF,eAAO,MAAM,SAAS,GAAI,MAAM;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,KAAG,OAAO,CAAC,OAAO,CAA6E,CAAA;AAEhG,eAAO,MAAM,SAAS,GACpB,OAAO,MAAM,EACb,MAAM;IACJ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,KACA,OAAO,CAAC,OAAO,CACgE,CAAA;AAElF,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,OAAO,CAAC,OAAO,CAC0B,CAAA;AAEpF,eAAO,MAAM,oBAAoB,GAC/B,YAAY,MAAM,EAClB,aAAQ,EACR,gBAAwB,EACxB,SAAS,WAAW,KACnB,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAqD,CAAA"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/services/tag.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,eAAO,MAAM,SAAS,GACpB,SAAQ;IACN,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;CAClB,EACN,SAAS,WAAW,KACnB,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAqBhC,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,EAAE,SAAS,WAAW,KAAG,OAAO,CAAC,OAAO,CAG3E,CAAA;AAEH,eAAO,MAAM,SAAS,GAAI,MAAM;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,KAAG,OAAO,CAAC,OAAO,CAGhB,CAAA;AAEH,eAAO,MAAM,SAAS,GACpB,OAAO,MAAM,EACb,MAAM;IACJ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,KACA,OAAO,CAAC,OAAO,CAIG,CAAA;AAErB,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,OAAO,CAAC,OAAO,CAIrC,CAAA;AAErB,eAAO,MAAM,oBAAoB,GAC/B,YAAY,MAAM,EAClB,aAAQ,EACR,gBAAwB,EACxB,SAAS,WAAW,EACpB,gBAAgB,MAAM,KACrB,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CACgC,CAAA"}
@@ -1,9 +1,9 @@
1
- import { PaginatedResponse } from '../api/types';
1
+ import { PagedResponse } from '../api/types';
2
2
  export declare const fetchTagUsers: (tagId: number, params?: {
3
3
  page?: number;
4
4
  perPage?: number;
5
5
  searchTerm?: string;
6
- }, signal?: AbortSignal) => Promise<PaginatedResponse<{
6
+ }, signal?: AbortSignal) => Promise<PagedResponse<{
7
7
  id: number;
8
8
  name: string;
9
9
  login_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/services/users.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAG9C,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,SAAQ;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,EACrE,SAAS,WAAW,KACnB,OAAO,CACR,iBAAiB,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAWnE,CAAA"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/services/users.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG1C,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,SAAQ;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,EACrE,SAAS,WAAW,KACnB,OAAO,CAAC,aAAa,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAoB7F,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { Pageable } from './pageable';
1
2
  import { WorkflowState } from './state';
2
- export interface CategoryType {
3
+ export interface CategoryType extends Pageable {
3
4
  id: number;
4
5
  name: string;
5
6
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,aAAa,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B"}
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,aAAa,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B"}
@@ -0,0 +1,8 @@
1
+ export interface Pageable {
2
+ link?: {
3
+ last?: {
4
+ page: string | number;
5
+ };
6
+ };
7
+ }
8
+ //# sourceMappingURL=pageable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pageable.d.ts","sourceRoot":"","sources":["../../src/types/pageable.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE;YACL,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;SACtB,CAAA;KACF,CAAA;CACF"}
@@ -1,5 +1,6 @@
1
+ import { Pageable } from './pageable';
1
2
  import { WorkflowState } from './state';
2
- export interface TagType {
3
+ export interface TagType extends Pageable {
3
4
  id: number;
4
5
  name: string;
5
6
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/types/tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,cAAc,EAAE,aAAa,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/types/tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,OAAQ,SAAQ,QAAQ;IACvC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,cAAc,EAAE,aAAa,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
@@ -0,0 +1,4 @@
1
+ import { PagedResponse } from '../api/types';
2
+ import { Pageable } from '../types/pageable';
3
+ export declare function getTotalPages<T extends Pageable>(data: PagedResponse<T> | undefined): number | undefined;
4
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/utils/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,wBAAgB,aAAa,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,sBAEnF"}
package/locales/en.json CHANGED
@@ -21,9 +21,11 @@
21
21
  "archiveTagFailed": "Failed to archive tag.",
22
22
  "archiveTagNotFound": "Tag not found or already archived.",
23
23
  "archiveTagUnprocessable": "This tag cannot be archived in its current state.",
24
+ "categoryAlreadyExists": "This category name already exists.",
24
25
  "categoryNameRequired": "Category name is required.",
25
26
  "categoryRequired": "Category is required.",
26
27
  "loadCategories": "Failed to load categories: %{errorMessage}",
28
+ "saveCategoryFailed": "Failed to save category. Please try again.",
27
29
  "tagAlreadyExists": "This tag name already exists.",
28
30
  "tagMoveConflict": "A tag with this name already exists in the selected category.",
29
31
  "tagMoveFailed": "Failed to move the tag. Please try again.",
@@ -53,13 +55,16 @@
53
55
  "category": "Category",
54
56
  "categoryArchived": "Archived",
55
57
  "categoryDescriptionLabel": "Category description",
58
+ "categoryDescriptionPlaceholder": "Briefly describe this category",
56
59
  "categoryMenuLabel": "Actions for %{category}",
57
60
  "categoryNameLabel": "Category name",
61
+ "categoryNamePlaceholder": "Enter a name",
58
62
  "categoryPlaceholder": "Select a category",
59
63
  "createNewCategoryOption": "Create new category",
60
64
  "expandCategory": "Expand category",
61
65
  "expendAll": "Expand all",
62
66
  "newCategory": "New category",
67
+ "newCategoryDescriptionLabel": "Description",
63
68
  "searchResults": "%{resultCount} results found",
64
69
  "selectCategoryToMove": "Select a new category to move",
65
70
  "sortCategories": "Sort categories",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-institutional-tagging",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -17,29 +17,31 @@
17
17
  "locales"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@instructure/emotion": "^10.0.0",
21
- "@instructure/ui-alerts": "^10.0.0",
22
- "@instructure/ui-badge": "^10.0.0",
23
- "@instructure/ui-buttons": "^10.0.0",
24
- "@instructure/ui-drilldown": "^10.0.0",
25
- "@instructure/ui-flex": "^10.0.0",
26
- "@instructure/ui-form-field": "^10.30.0",
27
- "@instructure/ui-heading": "^10.0.0",
28
- "@instructure/ui-icons": "^10.0.0",
29
- "@instructure/ui-menu": "^10.0.0",
30
- "@instructure/ui-modal": "^10.0.0",
31
- "@instructure/ui-pagination": "^10.0.0",
32
- "@instructure/ui-pill": "^10.0.0",
33
- "@instructure/ui-simple-select": "^10.0.0",
34
- "@instructure/ui-text": "^10.0.0",
35
- "@instructure/ui-text-input": "^10.0.0",
36
- "@instructure/ui-themes": "^10.0.0",
37
- "@instructure/ui-truncate-text": "^10.0.0",
20
+ "@instructure/emotion": "^10.5.0",
21
+ "@instructure/ui-alerts": "^10.5.0",
22
+ "@instructure/ui-badge": "^10.5.0",
23
+ "@instructure/ui-buttons": "^10.5.0",
24
+ "@instructure/ui-drilldown": "^10.5.0",
25
+ "@instructure/ui-flex": "^10.5.0",
26
+ "@instructure/ui-form-field": "^10.5.0",
27
+ "@instructure/ui-heading": "^10.5.0",
28
+ "@instructure/ui-icons": "^10.5.0",
29
+ "@instructure/ui-menu": "^10.5.0",
30
+ "@instructure/ui-modal": "^10.5.0",
31
+ "@instructure/ui-pagination": "^10.5.0",
32
+ "@instructure/ui-pill": "^10.5.0",
33
+ "@instructure/ui-popover": "^10.5.0",
34
+ "@instructure/ui-simple-select": "^10.5.0",
35
+ "@instructure/ui-text": "^10.5.0",
36
+ "@instructure/ui-text-area": "^10.5.0",
37
+ "@instructure/ui-text-input": "^10.5.0",
38
+ "@instructure/ui-themes": "^10.5.0",
39
+ "@instructure/ui-truncate-text": "^10.5.0",
38
40
  "@tanstack/react-query": "^5.0.0",
39
41
  "react": "^18.0.0",
40
42
  "react-dom": "^18.0.0",
41
43
  "react-router-dom": "^6.0.0",
42
- "@instructure/platform-provider": "0.3.0"
44
+ "@instructure/platform-provider": "0.4.0"
43
45
  },
44
46
  "devDependencies": {
45
47
  "@instructure/ui-form-field": "^10.30.0",
@@ -69,10 +71,11 @@
69
71
  "vite-plugin-dts": "^4.0.0"
70
72
  },
71
73
  "dependencies": {
72
- "axios": "^1.13.6",
73
74
  "lodash": "^4.17.23",
74
75
  "luxon": "^3.7.2",
75
- "styled-components": "^6.3.11"
76
+ "styled-components": "^6.3.11",
77
+ "zod": "^3.23.8",
78
+ "@instructure/platform-canvas-fetch": "0.1.1"
76
79
  },
77
80
  "scripts": {
78
81
  "build": "vite build",
@@ -1,9 +0,0 @@
1
- /**
2
- * TODO: implement suggestions:
3
- * - Missing CSRF protection setup
4
- * - No request timeout configured
5
- * - No retry logic for failed requests
6
- */
7
- declare const client: import('axios').AxiosInstance;
8
- export { client };
9
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,QAAA,MAAM,MAAM,+BAKV,CAAA;AAwDF,OAAO,EAAE,MAAM,EAAE,CAAA"}