@instructure/ui-a11y-content 11.7.8 → 11.7.9-snapshot-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
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [11.7.9-snapshot-1](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-snapshot-1) (2026-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-a11y-content
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [11.7.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @instructure/ui-a11y-content
|
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.AccessibleContent = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
9
|
-
var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
|
|
8
|
+
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
10
9
|
var _index = require("../PresentationContent/index.js");
|
|
11
10
|
var _index2 = require("../ScreenReaderContent/index.js");
|
|
12
11
|
var _props = require("./props.js");
|
|
@@ -60,9 +59,9 @@ class AccessibleContent extends _react.Component {
|
|
|
60
59
|
children,
|
|
61
60
|
...props
|
|
62
61
|
} = this.props;
|
|
63
|
-
const ElementType = (0,
|
|
62
|
+
const ElementType = (0, _uiReactUtils.getElementType)(AccessibleContent, this.props);
|
|
64
63
|
return (0, _jsxRuntime.jsxs)(ElementType, {
|
|
65
|
-
...(0,
|
|
64
|
+
...(0, _uiReactUtils.passthroughProps)(props),
|
|
66
65
|
ref: this.handleRef,
|
|
67
66
|
children: [(0, _jsxRuntime.jsx)(_index2.ScreenReaderContent, {
|
|
68
67
|
children: alt
|
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.PresentationContent = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
9
|
-
var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
|
|
8
|
+
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
10
9
|
var _props = require("./props.js");
|
|
11
10
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
12
11
|
/*
|
|
@@ -61,9 +60,9 @@ class PresentationContent extends _react.Component {
|
|
|
61
60
|
children,
|
|
62
61
|
...props
|
|
63
62
|
} = this.props;
|
|
64
|
-
const ElementType = (0,
|
|
63
|
+
const ElementType = (0, _uiReactUtils.getElementType)(PresentationContent, this.props);
|
|
65
64
|
return (0, _jsxRuntime.jsx)(ElementType, {
|
|
66
|
-
...(0,
|
|
65
|
+
...(0, _uiReactUtils.passthroughProps)(props),
|
|
67
66
|
"aria-hidden": "true",
|
|
68
67
|
ref: this.handleRef,
|
|
69
68
|
children: children
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.ScreenReaderContent = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
var
|
|
10
|
-
var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
|
|
9
|
+
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
11
10
|
var _emotion = require("@instructure/emotion");
|
|
12
11
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
13
12
|
var _props = require("./props.js");
|
|
@@ -72,9 +71,9 @@ let ScreenReaderContent = exports.ScreenReaderContent = (_dec = (0, _emotion.wit
|
|
|
72
71
|
styles,
|
|
73
72
|
...props
|
|
74
73
|
} = this.props;
|
|
75
|
-
const ElementType = (0,
|
|
74
|
+
const ElementType = (0, _uiReactUtils.getElementType)(ScreenReaderContent, props);
|
|
76
75
|
return (0, _jsxRuntime.jsx)(ElementType, {
|
|
77
|
-
...(0,
|
|
76
|
+
...(0, _uiReactUtils.passthroughProps)(props),
|
|
78
77
|
css: styles?.screenReaderContent,
|
|
79
78
|
ref: this.handleRef,
|
|
80
79
|
children: children
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-a11y-content",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.9-snapshot-1",
|
|
4
4
|
"description": "Utility components that enhance the user experience of those that navigate the web with a screen reader or keyboard.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
|
-
"@instructure/emotion": "11.7.
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
18
|
+
"@instructure/emotion": "11.7.9-snapshot-1",
|
|
19
|
+
"@instructure/shared-types": "11.7.9-snapshot-1",
|
|
20
|
+
"@instructure/ui-react-utils": "11.7.9-snapshot-1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"vitest": "^5.0.0",
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
24
|
+
"@instructure/ui-babel-preset": "11.7.9-snapshot-1",
|
|
25
|
+
"@instructure/ui-axe-check": "11.7.9-snapshot-1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=18 <=19"
|