@instructure/platform-institutional-tagging 8.2.1 → 8.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.
@@ -1 +1 @@
1
- {"version":3,"file":"AccountTags.d.ts","sourceRoot":"","sources":["../../../src/screens/AccountTags/AccountTags.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,gBAAgB;IACxB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CAC7C;AAsDD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqClD,CAAA"}
1
+ {"version":3,"file":"AccountTags.d.ts","sourceRoot":"","sources":["../../../src/screens/AccountTags/AccountTags.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,gBAAgB;IACxB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CAC7C;AAmFD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0ElD,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export declare const AccountTagsContainer: 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;
2
+ export declare const AccountTagsListView: 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;
2
3
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/screens/AccountTags/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,uVAKhC,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/screens/AccountTags/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,uVAKhC,CAAA;AAQD,eAAO,MAAM,mBAAmB,uVAQ/B,CAAA"}
@@ -1,7 +1,14 @@
1
1
  import { default as React } from 'react';
2
2
  interface TagDetailProps {
3
3
  tagId: string;
4
- onClose: () => void;
4
+ /**
5
+ * `returnFocus` is false when the screen closes itself rather than the user closing it —
6
+ * archiving the tag removes the kebab this screen was opened from, so there is nothing to
7
+ * return focus to.
8
+ */
9
+ onClose: (returnFocus?: boolean) => void;
10
+ /** Where focus goes when the tag is archived from here and its kebab disappears. */
11
+ returnFocusRef?: React.RefObject<HTMLElement | null>;
5
12
  }
6
13
  export declare const TagDetail: React.FC<TagDetailProps>;
7
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"TagDetail.d.ts","sourceRoot":"","sources":["../../../src/screens/TagDetail/TagDetail.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAOD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA2E9C,CAAA"}
1
+ {"version":3,"file":"TagDetail.d.ts","sourceRoot":"","sources":["../../../src/screens/TagDetail/TagDetail.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,oFAAoF;IACpF,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACrD;AAOD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8E9C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TagDetailHeader.d.ts","sourceRoot":"","sources":["../../../src/screens/TagDetail/TagDetailHeader.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,oBAAoB;IAC5B,GAAG,EAAE,OAAO,CAAA;IACZ,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA4F7D,CAAA"}
1
+ {"version":3,"file":"TagDetailHeader.d.ts","sourceRoot":"","sources":["../../../src/screens/TagDetail/TagDetailHeader.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAIpC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,oBAAoB;IAC5B,GAAG,EAAE,OAAO,CAAA;IACZ,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6G7D,CAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Whether focus is going spare, i.e. nothing the user can still reach is holding it.
3
+ * Moving focus is only safe under that condition — anywhere else, the user put it there.
4
+ *
5
+ * Both branches matter. `<body>` is where focus lands when the element that had it is
6
+ * removed, and an element inside a `hidden` subtree is unreachable even though it is
7
+ * still `document.activeElement`: real browsers blur it, jsdom does not.
8
+ */
9
+ export declare const isFocusUnclaimed: () => boolean;
10
+ //# sourceMappingURL=focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../src/utils/focus.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,QAAO,OAInC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-institutional-tagging",
3
- "version": "8.2.1",
3
+ "version": "8.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",