@instructure/ui-svg-images 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 +8 -0
- package/lib/InlineSVG/index.js +5 -6
- package/package.json +8 -8
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-svg-images
|
|
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-svg-images
|
package/lib/InlineSVG/index.js
CHANGED
|
@@ -6,9 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.InlineSVG = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var _combineDataCid = require("@instructure/ui-utils/lib/combineDataCid.js");
|
|
9
|
+
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
10
|
+
var _uiUtils = require("@instructure/ui-utils");
|
|
12
11
|
var _emotion = require("@instructure/emotion");
|
|
13
12
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
13
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
@@ -44,7 +43,7 @@ var _dec, _dec2, _class;
|
|
|
44
43
|
category: components/Util Components
|
|
45
44
|
---
|
|
46
45
|
**/
|
|
47
|
-
let InlineSVG = exports.InlineSVG = (_dec = (0,
|
|
46
|
+
let InlineSVG = exports.InlineSVG = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = class InlineSVG extends _react.Component {
|
|
48
47
|
static displayName = 'InlineSVG';
|
|
49
48
|
static componentId = 'InlineSVG';
|
|
50
49
|
static allowedProps = _props.allowedProps;
|
|
@@ -170,7 +169,7 @@ let InlineSVG = exports.InlineSVG = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
170
169
|
const height = this.props.height === 'auto' ? undefined : this.numberToNumberType(this.props.height);
|
|
171
170
|
return (0, _jsxRuntime.jsxs)("svg", {
|
|
172
171
|
...parseAttributes(safeSrc),
|
|
173
|
-
...(0,
|
|
172
|
+
...(0, _uiReactUtils.omitProps)(this.props, InlineSVG.allowedProps, ['inline']),
|
|
174
173
|
style: {
|
|
175
174
|
...style,
|
|
176
175
|
width,
|
|
@@ -185,7 +184,7 @@ let InlineSVG = exports.InlineSVG = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
185
184
|
css: styles?.inlineSVG,
|
|
186
185
|
className: props.className,
|
|
187
186
|
ref: this.handleRef,
|
|
188
|
-
"data-cid": (0,
|
|
187
|
+
"data-cid": (0, _uiUtils.combineDataCid)('InlineSVG', this.props),
|
|
189
188
|
children: [this.renderTitle(), this.renderDesc(description), this.renderContent(safeSrc)]
|
|
190
189
|
});
|
|
191
190
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-svg-images",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.9-snapshot-1",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
18
|
"dompurify": "^3.4.2",
|
|
19
|
-
"@instructure/emotion": "11.7.
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/ui-
|
|
22
|
-
"@instructure/ui-utils": "11.7.
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/
|
|
19
|
+
"@instructure/emotion": "11.7.9-snapshot-1",
|
|
20
|
+
"@instructure/shared-types": "11.7.9-snapshot-1",
|
|
21
|
+
"@instructure/ui-react-utils": "11.7.9-snapshot-1",
|
|
22
|
+
"@instructure/ui-utils": "11.7.9-snapshot-1",
|
|
23
|
+
"@instructure/ui-themes": "11.7.9-snapshot-1",
|
|
24
|
+
"@instructure/uid": "11.7.9-snapshot-1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"vitest": "^5.0.0",
|
|
28
|
-
"@instructure/ui-babel-preset": "11.7.
|
|
28
|
+
"@instructure/ui-babel-preset": "11.7.9-snapshot-1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=18 <=19"
|