@instructure/platform-institutional-tagging 5.0.0 → 5.0.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 (33) hide show
  1. package/dist/__tests__/helpers.d.ts +1 -0
  2. package/dist/__tests__/helpers.d.ts.map +1 -1
  3. package/dist/__tests__/useCategoryFormFields.test.d.ts +2 -0
  4. package/dist/__tests__/useCategoryFormFields.test.d.ts.map +1 -0
  5. package/dist/__tests__/useCreateTagForm.test.d.ts +2 -0
  6. package/dist/__tests__/useCreateTagForm.test.d.ts.map +1 -0
  7. package/dist/__tests__/useEditTagForm.test.d.ts +2 -0
  8. package/dist/__tests__/useEditTagForm.test.d.ts.map +1 -0
  9. package/dist/__tests__/useTagFormFields.test.d.ts +2 -0
  10. package/dist/__tests__/useTagFormFields.test.d.ts.map +1 -0
  11. package/dist/components/Alert/AriaLiveContainer.d.ts +1 -0
  12. package/dist/components/Alert/AriaLiveContainer.d.ts.map +1 -1
  13. package/dist/components/Alert/index.d.ts +1 -0
  14. package/dist/components/Alert/index.d.ts.map +1 -1
  15. package/dist/components/Category/Category.d.ts.map +1 -1
  16. package/dist/components/SearchAndFilterSection/SearchAndFilterSection.d.ts +4 -1
  17. package/dist/components/SearchAndFilterSection/SearchAndFilterSection.d.ts.map +1 -1
  18. package/dist/constants/i18n.d.ts +3 -0
  19. package/dist/constants/i18n.d.ts.map +1 -1
  20. package/dist/contexts/ExpansionContext.d.ts +9 -0
  21. package/dist/contexts/ExpansionContext.d.ts.map +1 -0
  22. package/dist/contexts/index.d.ts +1 -0
  23. package/dist/contexts/index.d.ts.map +1 -1
  24. package/dist/hooks/useAccountTagsScreen.d.ts +3 -1
  25. package/dist/hooks/useAccountTagsScreen.d.ts.map +1 -1
  26. package/dist/index.js +4238 -4206
  27. package/dist/screens/AccountTags/AccountTags.d.ts.map +1 -1
  28. package/dist/types/context.d.ts +4 -0
  29. package/dist/types/context.d.ts.map +1 -1
  30. package/dist/types/state.d.ts +4 -0
  31. package/dist/types/state.d.ts.map +1 -1
  32. package/locales/en.json +3 -1
  33. package/package.json +1 -1
@@ -2,6 +2,7 @@ import { QueryClient } from '@tanstack/react-query';
2
2
  import { AlertConfig } from '../contexts/AlertContext';
3
3
  import { default as React } from 'react';
4
4
  export declare const createGqlHandler: (operationName: string, mockData: unknown) => import('msw').HttpHandler;
5
+ export declare const createGqlDispatcher: (handlers: Record<string, unknown>) => import('msw').HttpHandler;
5
6
  export declare const createWrapper: (queryClient: QueryClient, showAlert?: (config: AlertConfig) => void) => ({ children }: {
6
7
  children: React.ReactNode;
7
8
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/__tests__/helpers.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,WAAW,EAAgB,MAAM,wBAAwB,CAAA;AAKlE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,gBAAgB,GAAI,eAAe,MAAM,EAAE,UAAU,OAAO,8BAKrE,CAAA;AAeJ,eAAO,MAAM,aAAa,GACvB,aAAa,WAAW,EAAE,YAAW,CAAC,MAAM,EAAE,WAAW,KAAK,IAAe,MAC7E,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAW3C,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/__tests__/helpers.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,WAAW,EAAgB,MAAM,wBAAwB,CAAA;AAKlE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,gBAAgB,GAAI,eAAe,MAAM,EAAE,UAAU,OAAO,8BAKrE,CAAA;AAEJ,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,8BAKjE,CAAA;AAgBJ,eAAO,MAAM,aAAa,GACvB,aAAa,WAAW,EAAE,YAAW,CAAC,MAAM,EAAE,WAAW,KAAK,IAAe,MAC7E,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAW3C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useCategoryFormFields.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCategoryFormFields.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useCategoryFormFields.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useCreateTagForm.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateTagForm.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useCreateTagForm.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useEditTagForm.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditTagForm.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useEditTagForm.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useTagFormFields.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTagFormFields.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useTagFormFields.test.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  import { default as React } from 'react';
2
+ export declare function getLiveRegion(): HTMLElement;
2
3
  export declare const AriaLiveContainer: React.FC;
3
4
  //# sourceMappingURL=AriaLiveContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AriaLiveContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/AriaLiveContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAWnC,CAAA"}
1
+ {"version":3,"file":"AriaLiveContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/AriaLiveContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,wBAAgB,aAAa,IAAI,WAAW,CAE3C;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAWnC,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export { AlertProvider } from './AlertProvider';
2
+ export { getLiveRegion } from './AriaLiveContainer';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Category.d.ts","sourceRoot":"","sources":["../../../src/components/Category/Category.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsD5C,CAAA"}
1
+ {"version":3,"file":"Category.d.ts","sourceRoot":"","sources":["../../../src/components/Category/Category.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2D5C,CAAA"}
@@ -1,10 +1,13 @@
1
- import { ViewType } from '../../types/state';
1
+ import { SortOrder, ViewType } from '../../types/state';
2
2
  import { default as React } from 'react';
3
3
  type SearchAndFilterSectionProps = {
4
4
  searchResultCount: number;
5
+ isFetching: boolean;
5
6
  handleSearchQueryChange: (query: string) => void;
6
7
  selectedView: ViewType;
7
8
  handleViewTypeChange: (view: ViewType) => void;
9
+ sortOrder: SortOrder;
10
+ handleSortToggle: () => void;
8
11
  };
9
12
  export declare const SearchAndFilterSection: React.FC<SearchAndFilterSectionProps>;
10
13
  export {};
@@ -1 +1 @@
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
+ {"version":3,"file":"SearchAndFilterSection.d.ts","sourceRoot":"","sources":["../../../src/components/SearchAndFilterSection/SearchAndFilterSection.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAElD,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,OAAO,CAAA;IACnB,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChD,YAAY,EAAE,QAAQ,CAAA;IACtB,oBAAoB,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAC9C,SAAS,EAAE,SAAS,CAAA;IACpB,gBAAgB,EAAE,MAAM,IAAI,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA+DxE,CAAA"}
@@ -16,6 +16,7 @@ export declare const i18nKeys: {
16
16
  readonly categoryNameLabel: "Category name";
17
17
  readonly categoryNamePlaceholder: "Enter a name";
18
18
  readonly categoryPlaceholder: "Select a category";
19
+ readonly collapseAll: "Collapse all";
19
20
  readonly createNewCategoryOption: "Create new category";
20
21
  readonly expandCategory: "Expand category";
21
22
  readonly expendAll: "Expand all";
@@ -24,6 +25,8 @@ export declare const i18nKeys: {
24
25
  readonly searchResults: "%{resultCount} results found";
25
26
  readonly selectCategoryToMove: "Select a new category to move";
26
27
  readonly sortCategories: "Sort categories";
28
+ readonly sortCategoriesAscending: "Sort categories: ascending";
29
+ readonly sortCategoriesDescending: "Sort categories: descending";
27
30
  readonly addTag: "Add tag";
28
31
  readonly addTags: "Add tags";
29
32
  readonly archiveTag: "Archive tag";
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/constants/i18n.ts"],"names":[],"mappings":"AA0GA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAA"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/constants/i18n.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { ExpansionContextValue } from '../types/context';
2
+ import { default as React } from 'react';
3
+ interface ExpansionProviderProps {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const ExpansionProvider: React.FC<ExpansionProviderProps>;
7
+ export declare const useExpansionContext: () => ExpansionContextValue;
8
+ export {};
9
+ //# sourceMappingURL=ExpansionContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpansionContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ExpansionContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAU9D,CAAA;AAED,eAAO,MAAM,mBAAmB,6BAA2C,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export { AppContainerContext, useContainerSize } from './AppContainerContext';
2
+ export { ExpansionProvider, useExpansionContext } from './ExpansionContext';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7E,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { CategoryType } from '../types/category';
2
- import { ViewType } from '../types/state';
2
+ import { SortOrder, ViewType } from '../types/state';
3
3
  export declare const useAccountTagsScreen: () => {
4
4
  shownCategories: CategoryType[];
5
5
  isPending: boolean;
@@ -13,5 +13,7 @@ export declare const useAccountTagsScreen: () => {
13
13
  handleViewTypeChange: (view: ViewType) => void;
14
14
  selectedView: ViewType;
15
15
  searchResultCount: any;
16
+ sortOrder: SortOrder;
17
+ handleSortToggle: () => void;
16
18
  };
17
19
  //# sourceMappingURL=useAccountTagsScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAccountTagsScreen.d.ts","sourceRoot":"","sources":["../../src/hooks/useAccountTagsScreen.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAUtD,eAAO,MAAM,oBAAoB;qBA+DxB,YAAY,EAAE;;;;WAIH,KAAK,GAAG,IAAI;;;6BAjBE,MAAM;qCA5BE,MAAM;iCAIV,QAAQ;;;CAkD7C,CAAA"}
1
+ {"version":3,"file":"useAccountTagsScreen.d.ts","sourceRoot":"","sources":["../../src/hooks/useAccountTagsScreen.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAiB,MAAM,cAAc,CAAA;AAUjE,eAAO,MAAM,oBAAoB;;;;;WA+Eb,KAAK,GAAG,IAAI;;;6BAxBE,MAAM;qCAhCE,MAAM;iCAIV,QAAQ;;;;;CA+D7C,CAAA"}