@instructure/platform-institutional-tagging 9.1.0 → 9.3.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 (125) hide show
  1. package/dist/api/utils.d.ts +34 -6
  2. package/dist/api/utils.d.ts.map +1 -1
  3. package/dist/components/Alert/styles.d.ts +2 -1
  4. package/dist/components/Alert/styles.d.ts.map +1 -1
  5. package/dist/components/AppContainer/GenericStoryWrapper.d.ts.map +1 -1
  6. package/dist/components/AppContainer/styles.d.ts +2 -1
  7. package/dist/components/AppContainer/styles.d.ts.map +1 -1
  8. package/dist/components/Category/BottomSection.d.ts.map +1 -1
  9. package/dist/components/Category/Category.d.ts.map +1 -1
  10. package/dist/components/Category/TagArea.d.ts.map +1 -1
  11. package/dist/components/Category/TopSection.d.ts.map +1 -1
  12. package/dist/components/Category/hooks/index.d.ts +2 -0
  13. package/dist/components/Category/hooks/index.d.ts.map +1 -0
  14. package/dist/components/Category/hooks/useMultiSelectToolbar.d.ts +15 -0
  15. package/dist/components/Category/hooks/useMultiSelectToolbar.d.ts.map +1 -0
  16. package/dist/components/Category/styles.d.ts +28 -21
  17. package/dist/components/Category/styles.d.ts.map +1 -1
  18. package/dist/components/SearchAndFilterSection/styles.d.ts +7 -6
  19. package/dist/components/SearchAndFilterSection/styles.d.ts.map +1 -1
  20. package/dist/components/Tag/Tag.d.ts +4 -0
  21. package/dist/components/Tag/Tag.d.ts.map +1 -1
  22. package/dist/components/Tag/styles.d.ts +9 -7
  23. package/dist/components/Tag/styles.d.ts.map +1 -1
  24. package/dist/components/UserTagList/styles.d.ts +3 -10
  25. package/dist/components/UserTagList/styles.d.ts.map +1 -1
  26. package/dist/constants/i18n.d.ts +37 -0
  27. package/dist/constants/i18n.d.ts.map +1 -1
  28. package/dist/constants/selection.d.ts +2 -0
  29. package/dist/constants/selection.d.ts.map +1 -0
  30. package/dist/contexts/CategoryContext.d.ts +1 -0
  31. package/dist/contexts/CategoryContext.d.ts.map +1 -1
  32. package/dist/contexts/DragContext.d.ts +1 -0
  33. package/dist/contexts/DragContext.d.ts.map +1 -1
  34. package/dist/contexts/FeatureFlagsContext.d.ts +1 -0
  35. package/dist/contexts/FeatureFlagsContext.d.ts.map +1 -1
  36. package/dist/graphql/mutations.d.ts +3 -0
  37. package/dist/graphql/mutations.d.ts.map +1 -1
  38. package/dist/graphql/queries.d.ts.map +1 -1
  39. package/dist/hooks/useAddPeople.d.ts +2 -2
  40. package/dist/hooks/useAddPeople.d.ts.map +1 -1
  41. package/dist/hooks/useBulkArchiveModal.d.ts +6 -0
  42. package/dist/hooks/useBulkArchiveModal.d.ts.map +1 -0
  43. package/dist/hooks/useBulkArchiveTags.d.ts +6 -0
  44. package/dist/hooks/useBulkArchiveTags.d.ts.map +1 -0
  45. package/dist/hooks/useBulkMoveTags.d.ts +6 -0
  46. package/dist/hooks/useBulkMoveTags.d.ts.map +1 -0
  47. package/dist/hooks/useBulkMoveTagsModal.d.ts +6 -0
  48. package/dist/hooks/useBulkMoveTagsModal.d.ts.map +1 -0
  49. package/dist/hooks/useDragAndDrop.d.ts +1 -0
  50. package/dist/hooks/useDragAndDrop.d.ts.map +1 -1
  51. package/dist/hooks/useFetchAccountUsers.d.ts +1 -1
  52. package/dist/hooks/useFetchAccountUsers.d.ts.map +1 -1
  53. package/dist/hooks/useFetchTagUsers.d.ts.map +1 -1
  54. package/dist/hooks/useSelectedUsers.d.ts +7 -0
  55. package/dist/hooks/useSelectedUsers.d.ts.map +1 -0
  56. package/dist/index.js +5439 -4838
  57. package/dist/modals/AddPeopleModal/AddPeopleModal.d.ts.map +1 -1
  58. package/dist/modals/AddPeopleModal/ManualUserSearch.d.ts +2 -1
  59. package/dist/modals/AddPeopleModal/ManualUserSearch.d.ts.map +1 -1
  60. package/dist/modals/AddPeopleModal/styles.d.ts +5 -4
  61. package/dist/modals/AddPeopleModal/styles.d.ts.map +1 -1
  62. package/dist/modals/AssignTagsModal/styles.d.ts +3 -2
  63. package/dist/modals/AssignTagsModal/styles.d.ts.map +1 -1
  64. package/dist/modals/GenericModal/GenericModal.d.ts.map +1 -1
  65. package/dist/modals/GenericModal/styles.d.ts +4 -3
  66. package/dist/modals/GenericModal/styles.d.ts.map +1 -1
  67. package/dist/modals/MoveTagModal/MoveTagModal.d.ts +2 -0
  68. package/dist/modals/MoveTagModal/MoveTagModal.d.ts.map +1 -1
  69. package/dist/modals/MoveTagModal/styles.d.ts +2 -1
  70. package/dist/modals/MoveTagModal/styles.d.ts.map +1 -1
  71. package/dist/modals/NewCategoryModal/styles.d.ts +2 -1
  72. package/dist/modals/NewCategoryModal/styles.d.ts.map +1 -1
  73. package/dist/modals/RestoreCategoryModal/styles.d.ts +3 -2
  74. package/dist/modals/RestoreCategoryModal/styles.d.ts.map +1 -1
  75. package/dist/modals/RestoreTagModal/RestoreTagModal.d.ts +1 -0
  76. package/dist/modals/RestoreTagModal/RestoreTagModal.d.ts.map +1 -1
  77. package/dist/modals/RestoreTagModal/styles.d.ts +3 -2
  78. package/dist/modals/RestoreTagModal/styles.d.ts.map +1 -1
  79. package/dist/modals/TagModal/CreateTagModal.d.ts.map +1 -1
  80. package/dist/modals/TagModal/EditTagModal.d.ts +1 -0
  81. package/dist/modals/TagModal/EditTagModal.d.ts.map +1 -1
  82. package/dist/modals/TagModal/fields/CategoryField.d.ts +2 -0
  83. package/dist/modals/TagModal/fields/CategoryField.d.ts.map +1 -1
  84. package/dist/modals/TagModal/hooks/useCategoryFormFields.d.ts +11 -1
  85. package/dist/modals/TagModal/hooks/useCategoryFormFields.d.ts.map +1 -1
  86. package/dist/modals/TagModal/hooks/useCreateTagForm.d.ts +2 -0
  87. package/dist/modals/TagModal/hooks/useCreateTagForm.d.ts.map +1 -1
  88. package/dist/modals/TagModal/hooks/useEditTagForm.d.ts +4 -1
  89. package/dist/modals/TagModal/hooks/useEditTagForm.d.ts.map +1 -1
  90. package/dist/modals/TagModal/hooks/useTagFormFields.d.ts +3 -0
  91. package/dist/modals/TagModal/hooks/useTagFormFields.d.ts.map +1 -1
  92. package/dist/modals/TagModal/styles.d.ts +2 -1
  93. package/dist/modals/TagModal/styles.d.ts.map +1 -1
  94. package/dist/modals/styles.d.ts +2 -1
  95. package/dist/modals/styles.d.ts.map +1 -1
  96. package/dist/query/events.d.ts +8 -0
  97. package/dist/query/events.d.ts.map +1 -1
  98. package/dist/query/keys.d.ts +4 -9
  99. package/dist/query/keys.d.ts.map +1 -1
  100. package/dist/query/map.d.ts.map +1 -1
  101. package/dist/screens/AccountTags/styles.d.ts +3 -2
  102. package/dist/screens/AccountTags/styles.d.ts.map +1 -1
  103. package/dist/screens/TagDetail/styles.d.ts +14 -17
  104. package/dist/screens/TagDetail/styles.d.ts.map +1 -1
  105. package/dist/screens/UserProfileTags/styles.d.ts +6 -5
  106. package/dist/screens/UserProfileTags/styles.d.ts.map +1 -1
  107. package/dist/skeletons/styles.d.ts +23 -22
  108. package/dist/skeletons/styles.d.ts.map +1 -1
  109. package/dist/types/category.d.ts +3 -0
  110. package/dist/types/category.d.ts.map +1 -1
  111. package/dist/types/styled.d.ts +4 -0
  112. package/dist/types/styled.d.ts.map +1 -0
  113. package/dist/types/tag.d.ts +3 -0
  114. package/dist/types/tag.d.ts.map +1 -1
  115. package/dist/utils/category.d.ts +11 -1
  116. package/dist/utils/category.d.ts.map +1 -1
  117. package/dist/utils/dragDrop.d.ts +23 -0
  118. package/dist/utils/dragDrop.d.ts.map +1 -0
  119. package/dist/utils/fieldErrors.d.ts +19 -0
  120. package/dist/utils/fieldErrors.d.ts.map +1 -0
  121. package/dist/utils/gqlMappers.d.ts.map +1 -1
  122. package/dist/utils/permissionMenu.d.ts +4 -2
  123. package/dist/utils/permissionMenu.d.ts.map +1 -1
  124. package/locales/en.json +37 -0
  125. package/package.json +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/screens/UserProfileTags/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,uVAEpC,CAAA;AAED,eAAO,MAAM,kBAAkB,uVAI9B,CAAA;AAED,eAAO,MAAM,QAAQ,uVAEpB,CAAA;AAED,eAAO,MAAM,QAAQ,+VAOpB,CAAA;AAED,eAAO,MAAM,QAAQ,uVAEpB,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/screens/UserProfileTags/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,KAAK,CAElD,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,KAAK,CAI5C,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,KAAK,CAElC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,IAAI,CAOjC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,IAAI,CAEjC,CAAA"}
@@ -1,30 +1,31 @@
1
- export declare const CategorySkeletonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>>> & string;
2
- export declare const CategorySkeletonHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
3
- export declare const CategorySkeletonContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
4
- export declare const CategorySkeletonTopSectionContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
5
- export declare const CategorySkeletonTextContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
6
- export declare const CategorySkeletonActionWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
7
- export declare const CategorySkeletonPills: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
8
- export declare const CategorySkeletonTagArea: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
9
- export declare const TagSkeletonInner: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
10
- export declare const TagSkeletonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
11
- export declare const TagSkeletonText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
12
- export declare const TagDetailSkeletonHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
13
- export declare const TagDetailSkeletonTitleRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
14
- export declare const TagDetailSkeletonTitleLeft: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
15
- export declare const TagDetailSkeletonActions: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
16
- export declare const TagDetailSkeletonActionsBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
17
- export declare const TagDetailSkeletonRows: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
18
- export declare const TagDetailSkeletonRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
19
- export declare const UserProfileTagsSkeletonList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>>> & string;
20
- export declare const UserSearchSkeletonContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
21
- export declare const UserSearchSkeletonDetails: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
1
+ import { Styled } from '../types/styled';
2
+ export declare const CategorySkeletonWrapper: Styled<'li'>;
3
+ export declare const CategorySkeletonHeader: Styled<'div'>;
4
+ export declare const CategorySkeletonContent: Styled<'div'>;
5
+ export declare const CategorySkeletonTopSectionContainer: Styled<'div'>;
6
+ export declare const CategorySkeletonTextContainer: Styled<'div'>;
7
+ export declare const CategorySkeletonActionWrapper: Styled<'div'>;
8
+ export declare const CategorySkeletonPills: Styled<'div'>;
9
+ export declare const CategorySkeletonTagArea: Styled<'div'>;
10
+ export declare const TagSkeletonInner: Styled<'div'>;
11
+ export declare const TagSkeletonWrapper: Styled<'div'>;
12
+ export declare const TagSkeletonText: Styled<'div'>;
13
+ export declare const TagDetailSkeletonHeader: Styled<'div'>;
14
+ export declare const TagDetailSkeletonTitleRow: Styled<'div'>;
15
+ export declare const TagDetailSkeletonTitleLeft: Styled<'div'>;
16
+ export declare const TagDetailSkeletonActions: Styled<'div'>;
17
+ export declare const TagDetailSkeletonActionsBar: Styled<'div'>;
18
+ export declare const TagDetailSkeletonRows: Styled<'div'>;
19
+ export declare const TagDetailSkeletonRow: Styled<'div'>;
20
+ export declare const UserProfileTagsSkeletonList: Styled<'ul'>;
21
+ export declare const UserSearchSkeletonContent: Styled<'span'>;
22
+ export declare const UserSearchSkeletonDetails: Styled<'span'>;
22
23
  interface SkeletonBlockProps {
23
24
  $width?: string | number;
24
25
  $height?: string | number;
25
26
  $radius?: string | number;
26
27
  $dark?: boolean;
27
28
  }
28
- export declare const SkeletonBlock: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof SkeletonBlockProps> & SkeletonBlockProps, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof SkeletonBlockProps> & SkeletonBlockProps, never>>> & string;
29
+ export declare const SkeletonBlock: Styled<'div', SkeletonBlockProps>;
29
30
  export {};
30
31
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/skeletons/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,uVAQnC,CAAA;AACD,eAAO,MAAM,sBAAsB,uVAQlC,CAAA;AACD,eAAO,MAAM,uBAAuB,uVAMnC,CAAA;AACD,eAAO,MAAM,mCAAmC,uVAK/C,CAAA;AACD,eAAO,MAAM,6BAA6B,uVAMzC,CAAA;AACD,eAAO,MAAM,6BAA6B,uVAMzC,CAAA;AACD,eAAO,MAAM,qBAAqB,uVAIjC,CAAA;AACD,eAAO,MAAM,uBAAuB,uVAKnC,CAAA;AACD,eAAO,MAAM,gBAAgB,uVAO5B,CAAA;AAGD,eAAO,MAAM,kBAAkB,uVAU9B,CAAA;AACD,eAAO,MAAM,eAAe,uVAM3B,CAAA;AAED,eAAO,MAAM,uBAAuB,uVAOnC,CAAA;AACD,eAAO,MAAM,yBAAyB,uVAMrC,CAAA;AACD,eAAO,MAAM,0BAA0B,uVAKtC,CAAA;AACD,eAAO,MAAM,wBAAwB,uVAIpC,CAAA;AACD,eAAO,MAAM,2BAA2B,uVAKvC,CAAA;AACD,eAAO,MAAM,qBAAqB,uVAIjC,CAAA;AACD,eAAO,MAAM,oBAAoB,uVAMhC,CAAA;AAED,eAAO,MAAM,2BAA2B,+VAOvC,CAAA;AAED,eAAO,MAAM,yBAAyB,2VAIrC,CAAA;AACD,eAAO,MAAM,yBAAyB,2VAIrC,CAAA;AAOD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,OAAO,CAAC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KrD,CAAA;AACD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,KAAK,CAI/C,CAAA;AACD,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAM9C,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,IAAI,CAOpD,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,CAIpD,CAAA;AACD,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,CAIpD,CAAA;AAOD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,KAAK,EAAE,kBAAkB,CAY3D,CAAA"}
@@ -5,6 +5,9 @@ export interface CategoryType {
5
5
  name: string;
6
6
  description?: string | null;
7
7
  workflowState: InstitutionalTagWorkflowState;
8
+ accountId: string;
9
+ /** Admin rights cascade down, so this can be true on another account's record. */
10
+ canManage: boolean;
8
11
  createdAt?: string;
9
12
  updatedAt?: string;
10
13
  tagsCount?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AAExF,MAAM,WAAW,YAAY;IAC3B,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,6BAA6B,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AAExF,MAAM,WAAW,YAAY;IAC3B,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,6BAA6B,CAAA;IAC5C,SAAS,EAAE,MAAM,CAAA;IACjB,kFAAkF;IAClF,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
@@ -0,0 +1,4 @@
1
+ import { JSX } from 'react';
2
+ import { IStyledComponent } from 'styled-components';
3
+ export type Styled<T extends keyof JSX.IntrinsicElements, P = unknown> = IStyledComponent<'web', Omit<JSX.IntrinsicElements[T], keyof P> & P>;
4
+ //# sourceMappingURL=styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../src/types/styled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAMzD,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,EAAE,CAAC,GAAG,OAAO,IAAI,gBAAgB,CACvF,KAAK,EACL,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAC5C,CAAA"}
@@ -6,6 +6,9 @@ export interface TagType {
6
6
  name: string;
7
7
  description: string;
8
8
  workflowState: InstitutionalTagWorkflowState;
9
+ accountId: string;
10
+ /** Admin rights cascade down, so this can be true on another account's record. */
11
+ canManage: boolean;
9
12
  associationsCount?: number;
10
13
  category: Pick<CategoryType, 'id' | 'name'>;
11
14
  createdAt?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/types/tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEzC,MAAM,WAAW,OAAO;IACtB,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,6BAA6B,CAAA;IAC5C,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,QAAQ,EAAE;QACR,WAAW,EAAE,OAAO,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAC3B,CAAA;CACF"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/types/tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEzC,MAAM,WAAW,OAAO;IACtB,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,6BAA6B,CAAA;IAC5C,SAAS,EAAE,MAAM,CAAA;IACjB,kFAAkF;IAClF,SAAS,EAAE,OAAO,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,QAAQ,EAAE;QACR,WAAW,EAAE,OAAO,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAC3B,CAAA;CACF"}
@@ -1,4 +1,14 @@
1
1
  import { SelectOption } from '../components/Select';
2
2
  import { CategoryType } from '../types/category';
3
- export declare const createCategorySelectOptions: (categories: CategoryType[], sourceCategoryId?: string) => SelectOption<string>[];
3
+ /**
4
+ * @param ownerAccountId when given, keeps only categories that account owns —
5
+ * updateInstitutionalTag refuses to move a tag to a category another account owns.
6
+ */
7
+ export declare const createCategorySelectOptions: (categories: CategoryType[], sourceCategoryId?: string, ownerAccountId?: string) => SelectOption<string>[];
8
+ /**
9
+ * canManage answers the rename/archive question, so it is false for an admin holding
10
+ * create but not edit. Creating a tag is authorised against the category's owner, so
11
+ * owning the category is authority enough.
12
+ */
13
+ export declare const canAddTagsTo: (category: Pick<CategoryType, "accountId" | "canManage">, actingAccountId: string) => boolean;
4
14
  //# sourceMappingURL=category.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/utils/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,eAAO,MAAM,2BAA2B,GACtC,YAAY,YAAY,EAAE,EAC1B,mBAAmB,MAAM,KACxB,YAAY,CAAC,MAAM,CAAC,EAItB,CAAA"}
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/utils/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GACtC,YAAY,YAAY,EAAE,EAC1B,mBAAmB,MAAM,EACzB,iBAAiB,MAAM,KACtB,YAAY,CAAC,MAAM,CAAC,EAKtB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,WAAW,CAAC,EACvD,iBAAiB,MAAM,KACtB,OAAuE,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { CategoryType } from '../types/category';
2
+ interface DropTargetInput {
3
+ /** Category the dragged tag currently sits in, or null when nothing is being dragged. */
4
+ activeTagCategoryId: string | null;
5
+ /** Account that owns the dragged tag. */
6
+ activeTagAccountId: string | null;
7
+ category: Pick<CategoryType, 'id' | 'accountId'>;
8
+ }
9
+ export interface DropTargetState {
10
+ /** Show the drop affordance and accept the move. */
11
+ canDropHere: boolean;
12
+ /** Withhold the category from dnd-kit's enabled set. */
13
+ disabled: boolean;
14
+ }
15
+ /**
16
+ * The source category stays enabled while dragging even though it is not a legal
17
+ * destination: a keyboard drag has no pointer coordinates, so collision falls back to
18
+ * closestCenter, and dropping the source from the measured set makes a pickup resolve
19
+ * straight onto a neighbour. `handleDragEnd` treats a drop on the source as the no-op.
20
+ */
21
+ export declare const resolveDropTargetState: ({ activeTagCategoryId, activeTagAccountId, category, }: DropTargetInput) => DropTargetState;
22
+ export {};
23
+ //# sourceMappingURL=dragDrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dragDrop.d.ts","sourceRoot":"","sources":["../../src/utils/dragDrop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,UAAU,eAAe;IACvB,yFAAyF;IACzF,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,WAAW,CAAC,CAAA;CACjD;AAED,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,WAAW,EAAE,OAAO,CAAA;IACpB,wDAAwD;IACxD,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,wDAIpC,eAAe,KAAG,eAUpB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { FormMessage } from '@instructure/ui-form-field/latest';
2
+ import { GqlFieldError } from '../api/utils';
3
+ import { ResolveTokenFunction } from '../types/i18n';
4
+ export interface FieldErrorTarget {
5
+ label: string;
6
+ setError: (messages: FormMessage[]) => void;
7
+ }
8
+ /**
9
+ * Puts each error on the field its `attribute` names and hands back the rest, so a caller
10
+ * can alert for whatever it couldn't place. Canvas builds these from `record.errors`, so a
11
+ * message is a fragment ('is too long (maximum is 500 characters)') that only reads as a
12
+ * sentence with its field's label in front.
13
+ *
14
+ * Every target is written on every pass, including the ones this response didn't name: a
15
+ * message left standing outlives the value it described once the user fixes that field and
16
+ * saves again.
17
+ */
18
+ export declare const routeFieldErrors: (errors: GqlFieldError[], targets: Record<string, FieldErrorTarget>, resolveToken: ResolveTokenFunction) => GqlFieldError[];
19
+ //# sourceMappingURL=fieldErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldErrors.d.ts","sourceRoot":"","sources":["../../src/utils/fieldErrors.ts"],"names":[],"mappings":"AAA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AC,MAAM,CAAC,CAAC,CAAA;AAEtF,eAAO,MAAM,UAAU,GAAI,MAAM,UAAU,KAAG,WAO5C,CAAA;AAEF,KAAK,oBAAoB,GAAG,WAAW,CACrC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAClF,CAAA;AACD,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AAExF,eAAO,MAAM,cAAc,GAAI,MAAM,UAAU,KAAG,IAAI,CAAC,OAAO,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,CAIxF,CAAA;AAEF,eAAO,MAAM,mBAAmB,GAAI,MAAM,YAAY,KAAG,eASvD,CAAA"}
@@ -1,14 +1,16 @@
1
1
  export declare enum Permission {
2
2
  Edit = "edit",
3
- Create = "create"
3
+ Create = "create",
4
+ Manage = "manage"
4
5
  }
5
6
  export type PermissionGuardMenuMap = {
6
7
  label: string;
7
8
  requiredPermissions: Permission[];
8
9
  onClick: () => void;
9
10
  };
10
- export declare const buildPermissionMenuItems: (items: PermissionGuardMenuMap[], { canEdit, canCreate }: {
11
+ export declare const buildPermissionMenuItems: (items: PermissionGuardMenuMap[], { canEdit, canCreate, canManage }: {
11
12
  canEdit: boolean;
12
13
  canCreate: boolean;
14
+ canManage: boolean;
13
15
  }) => JSX.Element[];
14
16
  //# sourceMappingURL=permissionMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"permissionMenu.d.ts","sourceRoot":"","sources":["../../src/utils/permissionMenu.tsx"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,mBAAmB,EAAE,UAAU,EAAE,CAAA;IACjC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,OAAO,sBAAsB,EAAE,EAC/B,wBAAwB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,KAC/D,GAAG,CAAC,OAAO,EAWR,CAAA"}
1
+ {"version":3,"file":"permissionMenu.d.ts","sourceRoot":"","sources":["../../src/utils/permissionMenu.tsx"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,mBAAmB,EAAE,UAAU,EAAE,CAAA;IACjC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,OAAO,sBAAsB,EAAE,EAC/B,mCAAmC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,KAC9F,GAAG,CAAC,OAAO,EAYR,CAAA"}
package/locales/en.json CHANGED
@@ -8,6 +8,7 @@
8
8
  "cancel": "Cancel",
9
9
  "categoryListPagination": "Category list pagination",
10
10
  "clearSearch": "Clear search",
11
+ "clearSelection": "Clear selection",
11
12
  "close": "Close",
12
13
  "closeTagDetails": "Close tag details",
13
14
  "createdAtStub": "Created",
@@ -18,11 +19,15 @@
18
19
  "moreOptionsForUser": "More options for %{userName}",
19
20
  "move": "Move",
20
21
  "multiSelectFieldDescription": "Type or use arrow keys to navigate options. Multiple selections allowed.",
22
+ "multiSelectOff": "Multi-select off",
23
+ "multiSelectOn": "Multi-select on",
24
+ "multiTagActions": "Actions for selected tags",
21
25
  "name": "Name",
22
26
  "nextPage": "Next page",
23
27
  "noData": "No data",
24
28
  "pageNumber": "Page %{pageNumber}",
25
29
  "people": "People",
30
+ "peopleSelectionCapReached": "You can select up to %{selectionCap} people at a time.",
26
31
  "previousPage": "Previous page",
27
32
  "remove": "Remove %{userName}",
28
33
  "restoreAssociations": "Restore previous account associations",
@@ -34,6 +39,7 @@
34
39
  "searchPeople": "Search or select people",
35
40
  "searchUsers": "Search users",
36
41
  "searchUsersDescription": "Results update as you type",
42
+ "selectionCapReached": "You can select up to %{selectionCap} tags at a time.",
37
43
  "sisId": "SIS ID",
38
44
  "typeToSearchForPeople": "Type to search for people",
39
45
  "useArrowKeysToNavigate": "Use arrow keys to navigate options.",
@@ -46,9 +52,12 @@
46
52
  "archiveTagFailed": "Failed to archive tag.",
47
53
  "assignTagsFailed": "Failed to assign tags.",
48
54
  "assignTagsRequired": "Select at least one tag.",
55
+ "bulkArchiveTagsFailed": "Failed to archive one or more tags.",
56
+ "bulkMoveTagsFailed": "Failed to move one or more tags.",
49
57
  "categoryNameAlreadyExists": "A category with this name already exists.",
50
58
  "categoryNameRequired": "Category name is required.",
51
59
  "categoryRequired": "Category is required.",
60
+ "fieldErrorWithLabel": "%{fieldLabel} %{errorMessage}",
52
61
  "loadCategories": "Failed to load categories: %{errorMessage}",
53
62
  "loadTagsFailed": "Failed to load tags.",
54
63
  "removeTagFromUserFailed": "Failed to remove tag from user.",
@@ -57,9 +66,12 @@
57
66
  "restoreTagCategoryRequired": "Select a category to restore the tag.",
58
67
  "restoreTagFailed": "Failed to restore tag.",
59
68
  "saveCategoryFailed": "Failed to save category. Please try again.",
69
+ "saveCategoryFailedWithReason": "Failed to save category: %{errorMessage}",
60
70
  "saveTagFailed": "Failed to save tag. Please try again.",
71
+ "saveTagFailedWithReason": "Failed to save tag: %{errorMessage}",
61
72
  "tagAlreadyExists": "This tag name already exists.",
62
73
  "tagDescriptionRequired": "Tag description is required.",
74
+ "tagLimitReached": "This category has reached its limit on tags. Archive a tag in it, or pick another category.",
63
75
  "tagMoveConflict": "A tag with this name already exists in the selected category.",
64
76
  "tagMoveFailed": "Failed to move the tag. Please try again.",
65
77
  "tagNameRequired": "Tag name is required.",
@@ -135,6 +147,7 @@
135
147
  "categoryNameNoMatches": "No matching categories",
136
148
  "categoryNamePlaceholder": "Enter a new category name",
137
149
  "categoryPlaceholder": "Select a category",
150
+ "categoryTagsSelected": "%{count} of %{total} tags selected in %{categoryName} category",
138
151
  "collapseAll": "Collapse all",
139
152
  "collapseCategory": "Collapse %{categoryName} category",
140
153
  "createNewCategoryOption": "Create new category",
@@ -153,6 +166,10 @@
153
166
  "sortCategoriesDescending": "Sort categories descending",
154
167
  "viewingActiveCategories": "Viewing active categories",
155
168
  "viewingArchivedCategories": "Viewing archived categories",
169
+ "selectedCount": {
170
+ "one": "%{count} selected",
171
+ "other": "%{count} selected"
172
+ },
156
173
  "selectedPeople": {
157
174
  "one": "%{count} person selected",
158
175
  "other": "%{count} people selected"
@@ -165,6 +182,22 @@
165
182
  "one": "%{count} tag assigned",
166
183
  "other": "%{count} tags assigned"
167
184
  },
185
+ "bulkArchiveTagsSuccess": {
186
+ "one": "%{count} tag archived",
187
+ "other": "%{count} tags archived"
188
+ },
189
+ "bulkMoveTagsSuccess": {
190
+ "one": "%{count} tag moved to %{categoryName}",
191
+ "other": "%{count} tags moved to %{categoryName}"
192
+ },
193
+ "archiveTags": {
194
+ "one": "Archive tag",
195
+ "other": "Archive tags"
196
+ },
197
+ "bulkArchiveTagsConfirmation": {
198
+ "one": "Archiving this tag means it will no longer be active or available for use. You can restore it later if needed.",
199
+ "other": "Archiving these tags means they will no longer be active or available for use. You can restore them later if needed."
200
+ },
168
201
  "nMoreTags": {
169
202
  "one": "Show %{count} more tag",
170
203
  "other": "Show %{count} more tags"
@@ -177,6 +210,10 @@
177
210
  "one": "Warning: %{count} associated user with tag: %{tagName}",
178
211
  "other": "Warning: %{count} associated users with tag: %{tagName}"
179
212
  },
213
+ "tagCount": {
214
+ "one": "%{count} tag",
215
+ "other": "%{count} tags"
216
+ },
180
217
  "tagsSelected": {
181
218
  "one": "%{count} tag selected",
182
219
  "other": "%{count} tags selected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-institutional-tagging",
3
- "version": "9.1.0",
3
+ "version": "9.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -32,6 +32,7 @@
32
32
  "@instructure/ui-form-field": "^11.7.4",
33
33
  "@instructure/ui-heading": "^11.7.4",
34
34
  "@instructure/ui-icons": "^11.7.4",
35
+ "@instructure/ui-link": "^11.7.4",
35
36
  "@instructure/ui-menu": "^11.7.4",
36
37
  "@instructure/ui-modal": "^11.7.4",
37
38
  "@instructure/ui-pagination": "^11.7.4",
@@ -67,6 +68,7 @@
67
68
  "@instructure/ui-form-field": "11.7.4",
68
69
  "@instructure/ui-heading": "11.7.4",
69
70
  "@instructure/ui-icons": "11.7.4",
71
+ "@instructure/ui-link": "11.7.4",
70
72
  "@instructure/ui-menu": "11.7.4",
71
73
  "@instructure/ui-modal": "11.7.4",
72
74
  "@instructure/ui-pagination": "11.7.4",
@@ -106,7 +108,7 @@
106
108
  "vite": "^6.0.0",
107
109
  "vite-plugin-dts": "^4.0.0",
108
110
  "vitest-axe": "^0.1.0",
109
- "@instructure/platform-graphql-types": "0.2.0",
111
+ "@instructure/platform-graphql-types": "0.2.1",
110
112
  "@instructure/platform-instui-bindings": "0.7.0"
111
113
  },
112
114
  "dependencies": {