@instructure/ui-alerts 8.28.1-snapshot-2 → 8.28.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.
- package/CHANGELOG.md +5 -2
- package/es/Alert/index.js +20 -45
- package/lib/Alert/index.js +19 -48
- package/package.json +16 -16
- package/src/Alert/index.tsx +41 -52
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Alert/index.d.ts +3 -4
- package/types/Alert/index.d.ts.map +1 -1
package/types/Alert/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ declare class Alert extends Component<AlertProps, AlertState> {
|
|
|
56
56
|
};
|
|
57
57
|
constructor(props: AlertProps);
|
|
58
58
|
_timeouts: ReturnType<typeof setTimeout>[];
|
|
59
|
-
srid
|
|
59
|
+
srid: string;
|
|
60
60
|
variantUI: {
|
|
61
61
|
error: typeof IconNoSolid;
|
|
62
62
|
info: typeof IconInfoBorderlessSolid;
|
|
@@ -74,16 +74,15 @@ declare class Alert extends Component<AlertProps, AlertState> {
|
|
|
74
74
|
initLiveRegion(liveRegion: Element): void;
|
|
75
75
|
createScreenreaderContentNode(): jsx.JSX.Element;
|
|
76
76
|
createScreenreaderAlert(): void;
|
|
77
|
-
updateScreenreaderAlert(): void;
|
|
78
|
-
renderScreenreeaderAlert(div: HTMLDivElement): void;
|
|
79
77
|
removeScreenreaderAlert(): void;
|
|
80
78
|
handleKeyUp: (event: React.KeyboardEvent<ViewOwnProps>) => void;
|
|
81
79
|
componentDidMount(): void;
|
|
82
|
-
componentDidUpdate(prevProps: AlertProps): void;
|
|
83
80
|
componentWillUnmount(): void;
|
|
81
|
+
componentDidUpdate(prevProps: AlertProps): void;
|
|
84
82
|
renderIcon(): jsx.JSX.Element;
|
|
85
83
|
renderCloseButton(): jsx.JSX.Element | null;
|
|
86
84
|
renderAlert(): jsx.JSX.Element;
|
|
85
|
+
createScreenReaderPortal(liveRegion: Element): React.ReactPortal | null;
|
|
87
86
|
render(): jsx.JSX.Element | null;
|
|
88
87
|
}
|
|
89
88
|
export default Alert;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;;;;GAKG;AACH,cAEM,KAAM,SAAQ,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;MAWlB;gBAEW,KAAK,EAAE,UAAU;IAS7B,SAAS,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,EAAE,CAAK;IAC/C,IAAI,EAAE,MAAM,CAAA;IAEZ,SAAS;;;;;MAKR;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO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