@instructure/ui-react-utils 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-react-utils
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-react-utils
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.withDeterministicId = exports.default = void 0;
8
8
  var _react = require("react");
9
9
  var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
10
- var _decorator = require("@instructure/ui-decorator/lib/decorator.js");
10
+ var _uiDecorator = require("@instructure/ui-decorator");
11
11
  var _useDeterministicId = require("./useDeterministicId.js");
12
12
  var _console = require("@instructure/console");
13
13
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
@@ -50,7 +50,7 @@ var _jsxRuntime = require("@emotion/react/jsx-runtime");
50
50
  * `createRoot`/`hydrateRoot` call so ids stay unique across roots.
51
51
  * Read more about it here: [SSR guide](https://instructure.design/#server-side-rendering)
52
52
  */
53
- const withDeterministicId = exports.withDeterministicId = (0, _decorator.decorator)(ComposedComponent => {
53
+ const withDeterministicId = exports.withDeterministicId = (0, _uiDecorator.decorator)(ComposedComponent => {
54
54
  const WithDeterministicId = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
55
55
  const componentName = ComposedComponent.componentId || ComposedComponent.displayName || ComposedComponent.name;
56
56
  const deterministicId = (0, _useDeterministicId.useDeterministicId)(componentName);
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
  exports.safeCloneElement = safeCloneElement;
8
8
  var _react = require("react");
9
9
  var _console = require("@instructure/console");
10
- var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFunction.js");
10
+ var _uiUtils = require("@instructure/ui-utils");
11
11
  /*
12
12
  * The MIT License (MIT)
13
13
  *
@@ -80,7 +80,7 @@ function safeCloneElement(element, props, ...children) {
80
80
  // otherwise unwantedly override element.props[prop].
81
81
  if (prop.indexOf('on') === 0 && (typeof props[prop] === 'function' || typeof element.props[prop] === 'function')) {
82
82
  ;
83
- mergedProps[prop] = (0, _createChainedFunction.createChainedFunction)(element.props[prop], props[prop]);
83
+ mergedProps[prop] = (0, _uiUtils.createChainedFunction)(element.props[prop], props[prop]);
84
84
  }
85
85
  });
86
86
  if (originalRef == null || cloneRef == null) {
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  exports.origin = origin;
8
8
  exports.windowMessageListener = void 0;
9
- var _decorator = require("@instructure/ui-decorator/lib/decorator.js");
10
- var _ownerWindow = require("@instructure/ui-dom-utils/lib/ownerWindow.js");
9
+ var _uiDecorator = require("@instructure/ui-decorator");
10
+ var _uiDomUtils = require("@instructure/ui-dom-utils");
11
11
  /*
12
12
  * The MIT License (MIT)
13
13
  *
@@ -45,20 +45,20 @@ var _ownerWindow = require("@instructure/ui-dom-utils/lib/ownerWindow.js");
45
45
  * @param {Function} validSource an optional function that would restrict message handling to a specified source.
46
46
  * @returns {Function} a function that decorates a React component with the behavior
47
47
  */
48
- const windowMessageListener = exports.windowMessageListener = (0, _decorator.decorator)((ComposedComponent, messageHandler, validSource) => {
48
+ const windowMessageListener = exports.windowMessageListener = (0, _uiDecorator.decorator)((ComposedComponent, messageHandler, validSource) => {
49
49
  return class extends ComposedComponent {
50
50
  static postMessage = function (target, message, origin) {
51
51
  target.postMessage(message, origin);
52
52
  };
53
53
  componentDidMount() {
54
- const win = (0, _ownerWindow.ownerWindow)(this);
54
+ const win = (0, _uiDomUtils.ownerWindow)(this);
55
55
  win.addEventListener('message', this.handleMessage, false);
56
56
  if (super.componentDidMount) {
57
57
  super.componentDidMount();
58
58
  }
59
59
  }
60
60
  componentWillUnmount() {
61
- const win = (0, _ownerWindow.ownerWindow)(this);
61
+ const win = (0, _uiDomUtils.ownerWindow)(this);
62
62
  win.removeEventListener('message', this.handleMessage, false);
63
63
  if (super.componentDidMount) {
64
64
  super.componentDidMount();
@@ -93,7 +93,7 @@ const windowMessageListener = exports.windowMessageListener = (0, _decorator.dec
93
93
  * @returns {String} the origin
94
94
  */
95
95
  function origin(node) {
96
- const ownWindow = (0, _ownerWindow.ownerWindow)(node);
96
+ const ownWindow = (0, _uiDomUtils.ownerWindow)(node);
97
97
  const {
98
98
  location
99
99
  } = ownWindow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-react-utils",
3
- "version": "11.7.8",
3
+ "version": "11.7.9-snapshot-1",
4
4
  "description": "A React utility library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -17,16 +17,16 @@
17
17
  "@babel/runtime": "^7.29.7",
18
18
  "@emotion/is-prop-valid": "^1.4.0",
19
19
  "hoist-non-react-statics": "^3.3.2",
20
- "@instructure/shared-types": "11.7.8",
21
- "@instructure/console": "11.7.8",
22
- "@instructure/ui-utils": "11.7.8",
23
- "@instructure/ui-dom-utils": "11.7.8",
24
- "@instructure/ui-decorator": "11.7.8"
20
+ "@instructure/console": "11.7.9-snapshot-1",
21
+ "@instructure/shared-types": "11.7.9-snapshot-1",
22
+ "@instructure/ui-decorator": "11.7.9-snapshot-1",
23
+ "@instructure/ui-dom-utils": "11.7.9-snapshot-1",
24
+ "@instructure/ui-utils": "11.7.9-snapshot-1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/hoist-non-react-statics": "^3.3.7",
28
28
  "vitest": "^5.0.0",
29
- "@instructure/ui-babel-preset": "11.7.8"
29
+ "@instructure/ui-babel-preset": "11.7.9-snapshot-1"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=18 <=19",