Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/ui-react-utils

Package Overview
Dependencies
Maintainers
0
Versions
1427
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-react-utils - npm Package Compare versions

Comparing version 10.2.3-snapshot-14 to 10.2.3-snapshot-15

2

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

## [10.2.3-snapshot-14](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-snapshot-14) (2024-10-02)
## [10.2.3-snapshot-15](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-snapshot-15) (2024-10-03)

@@ -9,0 +9,0 @@ **Note:** Version bump only for package @instructure/ui-react-utils

@@ -48,3 +48,3 @@ var _div, _div2;

const Foo = () => _div || (_div = /*#__PURE__*/React.createElement("div", null, "hello"));
expect(callRenderProp( /*#__PURE__*/React.createElement(Foo, null))).toStrictEqual( /*#__PURE__*/React.createElement(Foo, null));
expect(callRenderProp(/*#__PURE__*/React.createElement(Foo, null))).toStrictEqual(/*#__PURE__*/React.createElement(Foo, null));
});

@@ -59,3 +59,3 @@ it('React classes', () => {

const Result = callRenderProp(Foo);
expect(Result).toStrictEqual( /*#__PURE__*/React.createElement(Foo, null));
expect(Result).toStrictEqual(/*#__PURE__*/React.createElement(Foo, null));
const _render = render(Result),

@@ -70,3 +70,3 @@ getByText = _render.getByText;

const result = callRenderProp(Baz);
const _render2 = render( /*#__PURE__*/React.createElement("div", null, result)),
const _render2 = render(/*#__PURE__*/React.createElement("div", null, result)),
getByText = _render2.getByText;

@@ -87,3 +87,3 @@ expect(getByText('some text')).toBeInTheDocument();

const result = callRenderProp(Baz);
const _render3 = render( /*#__PURE__*/React.createElement("div", null, result)),
const _render3 = render(/*#__PURE__*/React.createElement("div", null, result)),
getByText = _render3.getByText;

@@ -100,3 +100,3 @@ expect(getByText('some text')).toBeInTheDocument();

});
const _render4 = render( /*#__PURE__*/React.createElement("div", null, result)),
const _render4 = render(/*#__PURE__*/React.createElement("div", null, result)),
getByText = _render4.getByText;

@@ -121,3 +121,3 @@ expect(getByText('rectangle')).toBeInTheDocument();

});
const _render5 = render( /*#__PURE__*/React.createElement("div", null, result)),
const _render5 = render(/*#__PURE__*/React.createElement("div", null, result)),
getByText = _render5.getByText;

@@ -124,0 +124,0 @@ expect(getByText('rectangle')).toBeInTheDocument();

@@ -116,3 +116,3 @@ /*

};
render( /*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
render(/*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
color: "yellow"

@@ -138,3 +138,3 @@ }));

};
render( /*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
render(/*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
color: color

@@ -162,3 +162,3 @@ }));

};
render( /*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
render(/*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
color: color

@@ -186,3 +186,3 @@ }));

};
render( /*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
render(/*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
color: color

@@ -220,3 +220,3 @@ }));

};
render( /*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
render(/*#__PURE__*/React.createElement(DeprecatedPropValueComponent, {
color: color

@@ -223,0 +223,0 @@ }));

@@ -81,7 +81,7 @@ var _dec, _class, _TestComponent, _div, _WrapperComponent2, _div2, _div3;

for (let i = 0; i < 10; i++) {
children.push( /*#__PURE__*/React.createElement(TestComponent, {
children.push(/*#__PURE__*/React.createElement(TestComponent, {
key: i
}));
}
render( /*#__PURE__*/React.createElement(Wrapper, null, children));
render(/*#__PURE__*/React.createElement(Wrapper, null, children));
const el = screen.getByTestId('wrapper');

@@ -88,0 +88,0 @@ expect(uniqueIds(el)).toBe(true);

@@ -42,3 +42,3 @@ /*

const cloneRef = vi.fn();
render( /*#__PURE__*/React.createElement(SafeClone, {
render(/*#__PURE__*/React.createElement(SafeClone, {
element: /*#__PURE__*/React.createElement("div", {

@@ -57,3 +57,3 @@ ref: origRef

const onClickB = vi.fn();
render( /*#__PURE__*/React.createElement(SafeClone, {
render(/*#__PURE__*/React.createElement(SafeClone, {
element: /*#__PURE__*/React.createElement("button", {

@@ -75,3 +75,3 @@ onClick: onClickA

const onClickC = vi.fn();
render( /*#__PURE__*/React.createElement(SafeClone, {
render(/*#__PURE__*/React.createElement(SafeClone, {
element: /*#__PURE__*/React.createElement("button", {

@@ -78,0 +78,0 @@ onClick: onClickA

@@ -50,3 +50,3 @@ "use strict";

const Foo = () => _div || (_div = /*#__PURE__*/_react.default.createElement("div", null, "hello"));
expect((0, _callRenderProp.callRenderProp)( /*#__PURE__*/_react.default.createElement(Foo, null))).toStrictEqual( /*#__PURE__*/_react.default.createElement(Foo, null));
expect((0, _callRenderProp.callRenderProp)(/*#__PURE__*/_react.default.createElement(Foo, null))).toStrictEqual(/*#__PURE__*/_react.default.createElement(Foo, null));
});

@@ -61,3 +61,3 @@ it('React classes', () => {

const Result = (0, _callRenderProp.callRenderProp)(Foo);
expect(Result).toStrictEqual( /*#__PURE__*/_react.default.createElement(Foo, null));
expect(Result).toStrictEqual(/*#__PURE__*/_react.default.createElement(Foo, null));
const _render = (0, _react2.render)(Result),

@@ -72,3 +72,3 @@ getByText = _render.getByText;

const result = (0, _callRenderProp.callRenderProp)(Baz);
const _render2 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement("div", null, result)),
const _render2 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement("div", null, result)),
getByText = _render2.getByText;

@@ -89,3 +89,3 @@ expect(getByText('some text')).toBeInTheDocument();

const result = (0, _callRenderProp.callRenderProp)(Baz);
const _render3 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement("div", null, result)),
const _render3 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement("div", null, result)),
getByText = _render3.getByText;

@@ -102,3 +102,3 @@ expect(getByText('some text')).toBeInTheDocument();

});
const _render4 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement("div", null, result)),
const _render4 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement("div", null, result)),
getByText = _render4.getByText;

@@ -123,3 +123,3 @@ expect(getByText('rectangle')).toBeInTheDocument();

});
const _render5 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement("div", null, result)),
const _render5 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement("div", null, result)),
getByText = _render5.getByText;

@@ -126,0 +126,0 @@ expect(getByText('rectangle')).toBeInTheDocument();

@@ -120,3 +120,3 @@ "use strict";

};
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
color: "yellow"

@@ -142,3 +142,3 @@ }));

};
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
color: color

@@ -166,3 +166,3 @@ }));

};
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
color: color

@@ -190,3 +190,3 @@ }));

};
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
color: color

@@ -224,3 +224,3 @@ }));

};
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(DeprecatedPropValueComponent, {
color: color

@@ -227,0 +227,0 @@ }));

@@ -83,7 +83,7 @@ "use strict";

for (let i = 0; i < 10; i++) {
children.push( /*#__PURE__*/_react.default.createElement(TestComponent, {
children.push(/*#__PURE__*/_react.default.createElement(TestComponent, {
key: i
}));
}
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(Wrapper, null, children));
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(Wrapper, null, children));
const el = _react2.screen.getByTestId('wrapper');

@@ -90,0 +90,0 @@ expect(uniqueIds(el)).toBe(true);

@@ -45,3 +45,3 @@ "use strict";

const cloneRef = _vitest.vi.fn();
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(SafeClone, {
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(SafeClone, {
element: /*#__PURE__*/_react.default.createElement("div", {

@@ -60,3 +60,3 @@ ref: origRef

const onClickB = _vitest.vi.fn();
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(SafeClone, {
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(SafeClone, {
element: /*#__PURE__*/_react.default.createElement("button", {

@@ -78,3 +78,3 @@ onClick: onClickA

const onClickC = _vitest.vi.fn();
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(SafeClone, {
(0, _react2.render)(/*#__PURE__*/_react.default.createElement(SafeClone, {
element: /*#__PURE__*/_react.default.createElement("button", {

@@ -81,0 +81,0 @@ onClick: onClickA

{
"name": "@instructure/ui-react-utils",
"version": "10.2.3-snapshot-14",
"version": "10.2.3-snapshot-15",
"description": "A React utility library made by Instructure Inc.",

@@ -25,15 +25,15 @@ "author": "Instructure, Inc. Engineering and Product Design",

"devDependencies": {
"@instructure/ui-babel-preset": "10.2.3-snapshot-14",
"@instructure/ui-babel-preset": "10.2.3-snapshot-15",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^15.0.7",
"vitest": "^2.0.2"
"@testing-library/react": "^16.0.1",
"vitest": "^2.1.1"
},
"dependencies": {
"@babel/runtime": "^7.24.5",
"@emotion/is-prop-valid": "^1.2.2",
"@instructure/console": "10.2.3-snapshot-14",
"@instructure/shared-types": "10.2.3-snapshot-14",
"@instructure/ui-decorator": "10.2.3-snapshot-14",
"@instructure/ui-dom-utils": "10.2.3-snapshot-14",
"@instructure/ui-utils": "10.2.3-snapshot-14",
"@babel/runtime": "^7.25.6",
"@emotion/is-prop-valid": "^1.3.1",
"@instructure/console": "10.2.3-snapshot-15",
"@instructure/shared-types": "10.2.3-snapshot-15",
"@instructure/ui-decorator": "10.2.3-snapshot-15",
"@instructure/ui-dom-utils": "10.2.3-snapshot-15",
"@instructure/ui-utils": "10.2.3-snapshot-15",
"hoist-non-react-statics": "^3.3.2",

@@ -40,0 +40,0 @@ "prop-types": "^15.8.1"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc