@instructure/ui-react-utils
Advanced tools
| /* | ||
| * The MIT License (MIT) | ||
| * | ||
| * Copyright (c) 2015 - present Instructure, Inc. | ||
| * | ||
| * Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| * of this software and associated documentation files (the "Software"), to deal | ||
| * in the Software without restriction, including without limitation the rights | ||
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| * copies of the Software, and to permit persons to whom the Software is | ||
| * furnished to do so, subject to the following conditions: | ||
| * | ||
| * The above copyright notice and this permission notice shall be included in all | ||
| * copies or substantial portions of the Software. | ||
| * | ||
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| * SOFTWARE. | ||
| */ | ||
| import { useContext } from 'react'; | ||
| import { generateId } from '@instructure/ui-utils'; | ||
| import { DeterministicIdContext } from "./DeterministicIdContext.js"; | ||
| /** | ||
| * A React hook that provides deterministic ID generation for functional components. | ||
| * | ||
| * This hook is the functional component equivalent of the `withDeterministicId` decorator. | ||
| * It uses the `DeterministicIdContext` which is needed for deterministic id generation. | ||
| * | ||
| * The context is there for the users to pass an `instanceCounterMap` Map which is then used | ||
| * in the child components to deterministically create ids for them based on the `instanceCounterMap`. | ||
| * Read more about it here: [SSR guide](https://instructure.design/#server-side-rendering) | ||
| * | ||
| * @param componentName - Optional component name to use as the ID prefix. | ||
| * @returns A function that generates deterministic IDs. The function accepts an optional instanceName parameter. | ||
| * | ||
| * @example | ||
| * ```tsx | ||
| * const MyComponent = () => { | ||
| * const [deterministicId, setDeterministicId] = useState() | ||
| * const getId = useDeterministicId('MyComponent') | ||
| * useEffect(() => { | ||
| * setDeterministicId(getId()) | ||
| * }, []) | ||
| * return <div id={deterministicId}>Content</div> | ||
| * } | ||
| * ``` | ||
| */ | ||
| function useDeterministicId(componentName) { | ||
| const instanceCounterMap = useContext(DeterministicIdContext); | ||
| return (instanceName = componentName) => { | ||
| return generateId(instanceName, instanceCounterMap); | ||
| }; | ||
| } | ||
| export default useDeterministicId; | ||
| export { useDeterministicId }; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { | ||
| value: true | ||
| }); | ||
| exports.default = void 0; | ||
| exports.useDeterministicId = useDeterministicId; | ||
| var _react = require("react"); | ||
| var _generateId = require("@instructure/ui-utils/lib/generateId.js"); | ||
| var _DeterministicIdContext = require("./DeterministicIdContext"); | ||
| /* | ||
| * The MIT License (MIT) | ||
| * | ||
| * Copyright (c) 2015 - present Instructure, Inc. | ||
| * | ||
| * Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| * of this software and associated documentation files (the "Software"), to deal | ||
| * in the Software without restriction, including without limitation the rights | ||
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| * copies of the Software, and to permit persons to whom the Software is | ||
| * furnished to do so, subject to the following conditions: | ||
| * | ||
| * The above copyright notice and this permission notice shall be included in all | ||
| * copies or substantial portions of the Software. | ||
| * | ||
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| * SOFTWARE. | ||
| */ | ||
| /** | ||
| * A React hook that provides deterministic ID generation for functional components. | ||
| * | ||
| * This hook is the functional component equivalent of the `withDeterministicId` decorator. | ||
| * It uses the `DeterministicIdContext` which is needed for deterministic id generation. | ||
| * | ||
| * The context is there for the users to pass an `instanceCounterMap` Map which is then used | ||
| * in the child components to deterministically create ids for them based on the `instanceCounterMap`. | ||
| * Read more about it here: [SSR guide](https://instructure.design/#server-side-rendering) | ||
| * | ||
| * @param componentName - Optional component name to use as the ID prefix. | ||
| * @returns A function that generates deterministic IDs. The function accepts an optional instanceName parameter. | ||
| * | ||
| * @example | ||
| * ```tsx | ||
| * const MyComponent = () => { | ||
| * const [deterministicId, setDeterministicId] = useState() | ||
| * const getId = useDeterministicId('MyComponent') | ||
| * useEffect(() => { | ||
| * setDeterministicId(getId()) | ||
| * }, []) | ||
| * return <div id={deterministicId}>Content</div> | ||
| * } | ||
| * ``` | ||
| */ | ||
| function useDeterministicId(componentName) { | ||
| const instanceCounterMap = (0, _react.useContext)(_DeterministicIdContext.DeterministicIdContext); | ||
| return (instanceName = componentName) => { | ||
| return (0, _generateId.generateId)(instanceName, instanceCounterMap); | ||
| }; | ||
| } | ||
| var _default = exports.default = useDeterministicId; |
| /* | ||
| * The MIT License (MIT) | ||
| * | ||
| * Copyright (c) 2015 - present Instructure, Inc. | ||
| * | ||
| * Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| * of this software and associated documentation files (the "Software"), to deal | ||
| * in the Software without restriction, including without limitation the rights | ||
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| * copies of the Software, and to permit persons to whom the Software is | ||
| * furnished to do so, subject to the following conditions: | ||
| * | ||
| * The above copyright notice and this permission notice shall be included in all | ||
| * copies or substantial portions of the Software. | ||
| * | ||
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| * SOFTWARE. | ||
| */ | ||
| import { useContext } from 'react' | ||
| import { generateId } from '@instructure/ui-utils' | ||
| import { DeterministicIdContext } from './DeterministicIdContext' | ||
| /** | ||
| * A React hook that provides deterministic ID generation for functional components. | ||
| * | ||
| * This hook is the functional component equivalent of the `withDeterministicId` decorator. | ||
| * It uses the `DeterministicIdContext` which is needed for deterministic id generation. | ||
| * | ||
| * The context is there for the users to pass an `instanceCounterMap` Map which is then used | ||
| * in the child components to deterministically create ids for them based on the `instanceCounterMap`. | ||
| * Read more about it here: [SSR guide](https://instructure.design/#server-side-rendering) | ||
| * | ||
| * @param componentName - Optional component name to use as the ID prefix. | ||
| * @returns A function that generates deterministic IDs. The function accepts an optional instanceName parameter. | ||
| * | ||
| * @example | ||
| * ```tsx | ||
| * const MyComponent = () => { | ||
| * const [deterministicId, setDeterministicId] = useState() | ||
| * const getId = useDeterministicId('MyComponent') | ||
| * useEffect(() => { | ||
| * setDeterministicId(getId()) | ||
| * }, []) | ||
| * return <div id={deterministicId}>Content</div> | ||
| * } | ||
| * ``` | ||
| */ | ||
| function useDeterministicId( | ||
| componentName: string | ||
| ): (instanceName?: string) => string { | ||
| const instanceCounterMap = useContext(DeterministicIdContext) | ||
| return (instanceName = componentName) => { | ||
| return generateId(instanceName, instanceCounterMap) | ||
| } | ||
| } | ||
| export default useDeterministicId | ||
| export { useDeterministicId } |
| /** | ||
| * A React hook that provides deterministic ID generation for functional components. | ||
| * | ||
| * This hook is the functional component equivalent of the `withDeterministicId` decorator. | ||
| * It uses the `DeterministicIdContext` which is needed for deterministic id generation. | ||
| * | ||
| * The context is there for the users to pass an `instanceCounterMap` Map which is then used | ||
| * in the child components to deterministically create ids for them based on the `instanceCounterMap`. | ||
| * Read more about it here: [SSR guide](https://instructure.design/#server-side-rendering) | ||
| * | ||
| * @param componentName - Optional component name to use as the ID prefix. | ||
| * @returns A function that generates deterministic IDs. The function accepts an optional instanceName parameter. | ||
| * | ||
| * @example | ||
| * ```tsx | ||
| * const MyComponent = () => { | ||
| * const [deterministicId, setDeterministicId] = useState() | ||
| * const getId = useDeterministicId('MyComponent') | ||
| * useEffect(() => { | ||
| * setDeterministicId(getId()) | ||
| * }, []) | ||
| * return <div id={deterministicId}>Content</div> | ||
| * } | ||
| * ``` | ||
| */ | ||
| declare function useDeterministicId(componentName: string): (instanceName?: string) => string; | ||
| export default useDeterministicId; | ||
| export { useDeterministicId }; | ||
| //# sourceMappingURL=useDeterministicId.d.ts.map |
| {"version":3,"file":"useDeterministicId.d.ts","sourceRoot":"","sources":["../../src/DeterministicIdContext/useDeterministicId.tsx"],"names":[],"mappings":"AA4BA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,iBAAS,kBAAkB,CACzB,aAAa,EAAE,MAAM,GACpB,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,MAAM,CAMnC;AAED,eAAe,kBAAkB,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,CAAA"} |
+36
-302
@@ -6,10 +6,15 @@ # Change Log | ||
| ## [11.6.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v11.6.0...v11.6.1-snapshot-0) (2026-02-24) | ||
| ## [11.6.1-snapshot-129](https://github.com/instructure/instructure-ui/compare/v11.6.0...v11.6.1-snapshot-129) (2026-03-16) | ||
| **Note:** Version bump only for package @instructure/ui-react-utils | ||
| ### Features | ||
| * **ui-radio-input:** use the new theme for RadioInput ([34bfd59](https://github.com/instructure/instructure-ui/commit/34bfd5956c47beceacb50637e7fd605b9e3f4210)) | ||
| * **ui-react-utils,ui-icons-lucide,ui-avatar:** add lucide icons to Avatar, refactor ui-icons-lucid package ([ab5c1ca](https://github.com/instructure/instructure-ui/commit/ab5c1ca8ec9961d754dafee0bcbe5040bb2641b1)) | ||
| * **ui-react-utils:** add useDeterministicID which can be used instead of withDeterministicId for functional components ([91f025e](https://github.com/instructure/instructure-ui/commit/91f025e0a5b157f7a3bc801d8fd45d96b454124c)) | ||
| # [11.6.0](https://github.com/instructure/instructure-ui/compare/v11.5.0...v11.6.0) (2026-02-18) | ||
@@ -19,6 +24,2 @@ | ||
| # [11.5.0](https://github.com/instructure/instructure-ui/compare/v11.4.0...v11.5.0) (2026-02-03) | ||
@@ -28,6 +29,2 @@ | ||
| # [11.4.0](https://github.com/instructure/instructure-ui/compare/v11.3.0...v11.4.0) (2026-01-20) | ||
@@ -37,6 +34,2 @@ | ||
| # [11.3.0](https://github.com/instructure/instructure-ui/compare/v11.2.0...v11.3.0) (2026-01-12) | ||
@@ -46,28 +39,14 @@ | ||
| # [11.2.0](https://github.com/instructure/instructure-ui/compare/v11.0.1...v11.2.0) (2025-11-06) | ||
| ### Features | ||
| * **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53)) | ||
| - **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53)) | ||
| # [11.1.0](https://github.com/instructure/instructure-ui/compare/v11.0.1...v11.1.0) (2025-11-05) | ||
| ### Features | ||
| * **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53)) | ||
| - **many:** migrate from npm to pnpm ([f7bb16e](https://github.com/instructure/instructure-ui/commit/f7bb16e114df83984c67d5a6e07fb4d9c65efc53)) | ||
| ## [11.0.1](https://github.com/instructure/instructure-ui/compare/v11.0.0...v11.0.1) (2025-10-13) | ||
@@ -77,35 +56,26 @@ | ||
| # [11.0.0](https://github.com/instructure/instructure-ui/compare/v10.26.0...v11.0.0) (2025-10-06) | ||
| ### Features | ||
| * **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c)) | ||
| - **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c)) | ||
| ### BREAKING CHANGES | ||
| * **many:** InstUI v11 contains the following breaking changes: | ||
| - React 16 and 17 are no longer supported | ||
| - remove `PropTypes` from all packages | ||
| - remove `CodeEditor` component | ||
| - remove `@instui/theme-registry` package | ||
| - remove `@testable`, `@experimental`, `@hack` decorators | ||
| - InstUISettingsProvider's `as` prop is removed | ||
| - `canvas.use()`, `canvasHighContrast.use()` functions are removed | ||
| - `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed | ||
| - `variables` field on theme objects are removed | ||
| - remove deprecated props from Table: Row's `isStacked`, Body's | ||
| - **many:** InstUI v11 contains the following breaking changes: | ||
| * React 16 and 17 are no longer supported | ||
| * remove `PropTypes` from all packages | ||
| * remove `CodeEditor` component | ||
| * remove `@instui/theme-registry` package | ||
| * remove `@testable`, `@experimental`, `@hack` decorators | ||
| * InstUISettingsProvider's `as` prop is removed | ||
| * `canvas.use()`, `canvasHighContrast.use()` functions are removed | ||
| * `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed | ||
| * `variables` field on theme objects are removed | ||
| * remove deprecated props from Table: Row's `isStacked`, Body's | ||
| `isStacked`, `hover`, and `headers` | ||
| - `Table`'s `caption` prop is now required | ||
| - `ui-dom-utils`'s `getComputedStyle` can now return `undefined` | ||
| * `Table`'s `caption` prop is now required | ||
| * `ui-dom-utils`'s `getComputedStyle` can now return `undefined` | ||
| # [10.26.0](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.26.0) (2025-10-01) | ||
@@ -115,6 +85,2 @@ | ||
| # [10.25.0](https://github.com/instructure/instructure-ui/compare/v10.24.2...v10.25.0) (2025-09-09) | ||
@@ -124,17 +90,8 @@ | ||
| ## [10.24.2](https://github.com/instructure/instructure-ui/compare/v10.24.1...v10.24.2) (2025-08-11) | ||
| ### Bug Fixes | ||
| * **ui-react-utils:** fix "ref is not a prop" warning spam ([5c02971](https://github.com/instructure/instructure-ui/commit/5c029716199b98353c5de589025962bcba4b01b5)) | ||
| - **ui-react-utils:** fix "ref is not a prop" warning spam ([5c02971](https://github.com/instructure/instructure-ui/commit/5c029716199b98353c5de589025962bcba4b01b5)) | ||
| ## [10.24.1](https://github.com/instructure/instructure-ui/compare/v10.24.0...v10.24.1) (2025-07-30) | ||
@@ -144,22 +101,12 @@ | ||
| # [10.24.0](https://github.com/instructure/instructure-ui/compare/v10.23.0...v10.24.0) (2025-07-18) | ||
| ### Bug Fixes | ||
| * **many:** fix focus ring not respecting theme overrides in Button and FileDrop ([8fffc5d](https://github.com/instructure/instructure-ui/commit/8fffc5db8f41249277283b0ad05be0d158d6d7d7)) | ||
| - **many:** fix focus ring not respecting theme overrides in Button and FileDrop ([8fffc5d](https://github.com/instructure/instructure-ui/commit/8fffc5db8f41249277283b0ad05be0d158d6d7d7)) | ||
| ### Features | ||
| * **ui-react-utils:** safeClonElement to support react 19 ([2c9931f](https://github.com/instructure/instructure-ui/commit/2c9931f4c6d815435e6db14e11f6260bb9df91a7)) | ||
| - **ui-react-utils:** safeClonElement to support react 19 ([2c9931f](https://github.com/instructure/instructure-ui/commit/2c9931f4c6d815435e6db14e11f6260bb9df91a7)) | ||
| # [10.23.0](https://github.com/instructure/instructure-ui/compare/v10.22.0...v10.23.0) (2025-07-09) | ||
@@ -169,17 +116,8 @@ | ||
| # [10.22.0](https://github.com/instructure/instructure-ui/compare/v10.21.0...v10.22.0) (2025-07-04) | ||
| ### Bug Fixes | ||
| * **ui-react-utils:** fix an edge-case where safeCloneElement breaks with non-functional refs ([fa78679](https://github.com/instructure/instructure-ui/commit/fa78679d7f9634b0729a66197bb0466444514d4b)) | ||
| - **ui-react-utils:** fix an edge-case where safeCloneElement breaks with non-functional refs ([fa78679](https://github.com/instructure/instructure-ui/commit/fa78679d7f9634b0729a66197bb0466444514d4b)) | ||
| # [10.21.0](https://github.com/instructure/instructure-ui/compare/v10.20.1...v10.21.0) (2025-06-27) | ||
@@ -189,6 +127,2 @@ | ||
| ## [10.20.1](https://github.com/instructure/instructure-ui/compare/v10.20.0...v10.20.1) (2025-06-17) | ||
@@ -198,17 +132,8 @@ | ||
| # [10.20.0](https://github.com/instructure/instructure-ui/compare/v10.19.1...v10.20.0) (2025-06-13) | ||
| ### Bug Fixes | ||
| * **many:** update dependencies, browsersdb and moment timezone database ([3813636](https://github.com/instructure/instructure-ui/commit/3813636458c901ad4bc74a4d5ae015cb55defcb2)) | ||
| - **many:** update dependencies, browsersdb and moment timezone database ([3813636](https://github.com/instructure/instructure-ui/commit/3813636458c901ad4bc74a4d5ae015cb55defcb2)) | ||
| ## [10.19.1](https://github.com/instructure/instructure-ui/compare/v10.19.0...v10.19.1) (2025-06-05) | ||
@@ -218,6 +143,2 @@ | ||
| # [10.19.0](https://github.com/instructure/instructure-ui/compare/v10.18.1...v10.19.0) (2025-06-03) | ||
@@ -227,6 +148,2 @@ | ||
| ## [10.18.1](https://github.com/instructure/instructure-ui/compare/v10.18.0...v10.18.1) (2025-05-29) | ||
@@ -236,6 +153,2 @@ | ||
| # [10.18.0](https://github.com/instructure/instructure-ui/compare/v10.17.0...v10.18.0) (2025-05-26) | ||
@@ -245,6 +158,2 @@ | ||
| # [10.17.0](https://github.com/instructure/instructure-ui/compare/v10.16.4...v10.17.0) (2025-05-20) | ||
@@ -254,6 +163,2 @@ | ||
| ## [10.16.4](https://github.com/instructure/instructure-ui/compare/v10.16.3...v10.16.4) (2025-05-09) | ||
@@ -263,6 +168,2 @@ | ||
| ## [10.16.3](https://github.com/instructure/instructure-ui/compare/v10.16.1...v10.16.3) (2025-04-30) | ||
@@ -272,6 +173,2 @@ | ||
| ## [10.16.2](https://github.com/instructure/instructure-ui/compare/v10.16.1...v10.16.2) (2025-04-22) | ||
@@ -281,6 +178,2 @@ | ||
| ## [10.16.1](https://github.com/instructure/instructure-ui/compare/v10.16.0...v10.16.1) (2025-04-22) | ||
@@ -290,6 +183,2 @@ | ||
| # [10.16.0](https://github.com/instructure/instructure-ui/compare/v10.15.2...v10.16.0) (2025-04-11) | ||
@@ -299,6 +188,2 @@ | ||
| ## [10.15.2](https://github.com/instructure/instructure-ui/compare/v10.15.1...v10.15.2) (2025-04-07) | ||
@@ -308,6 +193,2 @@ | ||
| ## [10.15.1](https://github.com/instructure/instructure-ui/compare/v10.15.0...v10.15.1) (2025-04-03) | ||
@@ -317,17 +198,8 @@ | ||
| # [10.15.0](https://github.com/instructure/instructure-ui/compare/v10.14.0...v10.15.0) (2025-03-31) | ||
| ### Bug Fixes | ||
| * **many:** fix having the same DOM ids if there are multiple instances of InstUI, e.g. module federation ([a0bb4d0](https://github.com/instructure/instructure-ui/commit/a0bb4d0a8d0f8bcca8f565883f56b599eec66fc9)) | ||
| - **many:** fix having the same DOM ids if there are multiple instances of InstUI, e.g. module federation ([a0bb4d0](https://github.com/instructure/instructure-ui/commit/a0bb4d0a8d0f8bcca8f565883f56b599eec66fc9)) | ||
| # [10.14.0](https://github.com/instructure/instructure-ui/compare/v10.13.0...v10.14.0) (2025-03-17) | ||
@@ -337,6 +209,2 @@ | ||
| # [10.13.0](https://github.com/instructure/instructure-ui/compare/v10.12.0...v10.13.0) (2025-03-06) | ||
@@ -346,6 +214,2 @@ | ||
| # [10.12.0](https://github.com/instructure/instructure-ui/compare/v10.11.0...v10.12.0) (2025-02-24) | ||
@@ -355,6 +219,2 @@ | ||
| # [10.11.0](https://github.com/instructure/instructure-ui/compare/v10.10.0...v10.11.0) (2025-02-03) | ||
@@ -364,6 +224,2 @@ | ||
| # [10.10.0](https://github.com/instructure/instructure-ui/compare/v10.9.0...v10.10.0) (2024-12-18) | ||
@@ -373,6 +229,2 @@ | ||
| # [10.9.0](https://github.com/instructure/instructure-ui/compare/v10.8.0...v10.9.0) (2024-12-12) | ||
@@ -382,17 +234,8 @@ | ||
| # [10.8.0](https://github.com/instructure/instructure-ui/compare/v10.7.0...v10.8.0) (2024-12-09) | ||
| ### Bug Fixes | ||
| * **ui-select,ui-text-input:** fix long before elements overflowing in TextInput, Select, SimpleSelect ([ee9cafd](https://github.com/instructure/instructure-ui/commit/ee9cafdd027b9a1caaa0791d1b6dc4f8401c87e7)) | ||
| - **ui-select,ui-text-input:** fix long before elements overflowing in TextInput, Select, SimpleSelect ([ee9cafd](https://github.com/instructure/instructure-ui/commit/ee9cafdd027b9a1caaa0791d1b6dc4f8401c87e7)) | ||
| # [10.7.0](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.7.0) (2024-12-03) | ||
@@ -402,17 +245,8 @@ | ||
| ## [10.6.1](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1) (2024-11-26) | ||
| ### Bug Fixes | ||
| * **ui-date-input:** fix DateInput2 not working with NVDA ([34fb8e0](https://github.com/instructure/instructure-ui/commit/34fb8e0d0882d7b45580533ed4218b5b306f6075)) | ||
| - **ui-date-input:** fix DateInput2 not working with NVDA ([34fb8e0](https://github.com/instructure/instructure-ui/commit/34fb8e0d0882d7b45580533ed4218b5b306f6075)) | ||
| # [10.6.0](https://github.com/instructure/instructure-ui/compare/v10.5.0...v10.6.0) (2024-11-18) | ||
@@ -422,6 +256,2 @@ | ||
| # [10.5.0](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.5.0) (2024-11-07) | ||
@@ -431,17 +261,8 @@ | ||
| ## [10.4.1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1) (2024-10-28) | ||
| ### Bug Fixes | ||
| * update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5)) | ||
| - update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5)) | ||
| # [10.4.0](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.4.0) (2024-10-16) | ||
@@ -451,6 +272,2 @@ | ||
| # [10.3.0](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.3.0) (2024-10-03) | ||
@@ -460,6 +277,2 @@ | ||
| ## [10.2.2](https://github.com/instructure/instructure-ui/compare/v10.2.1...v10.2.2) (2024-09-13) | ||
@@ -469,6 +282,2 @@ | ||
| ## [10.2.1](https://github.com/instructure/instructure-ui/compare/v10.2.0...v10.2.1) (2024-08-30) | ||
@@ -478,6 +287,2 @@ | ||
| # [10.2.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.2.0) (2024-08-23) | ||
@@ -487,6 +292,2 @@ | ||
| # [10.1.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.1.0) (2024-08-23) | ||
@@ -496,6 +297,2 @@ | ||
| # [10.0.0](https://github.com/instructure/instructure-ui/compare/v9.5.1...v10.0.0) (2024-07-31) | ||
@@ -505,6 +302,2 @@ | ||
| ## [9.5.1](https://github.com/instructure/instructure-ui/compare/v9.5.0...v9.5.1) (2024-07-30) | ||
@@ -514,6 +307,2 @@ | ||
| # [9.5.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.5.0) (2024-07-26) | ||
@@ -523,6 +312,2 @@ | ||
| # [9.4.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.4.0) (2024-07-26) | ||
@@ -532,6 +317,2 @@ | ||
| # [9.3.0](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.3.0) (2024-07-17) | ||
@@ -541,6 +322,2 @@ | ||
| # [9.2.0](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.2.0) (2024-07-09) | ||
@@ -550,17 +327,8 @@ | ||
| # [9.1.0](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.1.0) (2024-06-14) | ||
| ### Bug Fixes | ||
| * **ui-react-utils:** remove defaultProps from DeterministicContextProvider ([5c89612](https://github.com/instructure/instructure-ui/commit/5c89612ceb4227f26462929068045bc06f3c080b)) | ||
| - **ui-react-utils:** remove defaultProps from DeterministicContextProvider ([5c89612](https://github.com/instructure/instructure-ui/commit/5c89612ceb4227f26462929068045bc06f3c080b)) | ||
| ## [9.0.1](https://github.com/instructure/instructure-ui/compare/v9.0.0...v9.0.1) (2024-05-09) | ||
@@ -570,22 +338,12 @@ | ||
| # [9.0.0](https://github.com/instructure/instructure-ui/compare/v8.56.0...v9.0.0) (2024-05-09) | ||
| ### Features | ||
| * **ui-dom-utils,ui-react-utils,ui-utils:** remove deprecated utils ([0a8c8e3](https://github.com/instructure/instructure-ui/commit/0a8c8e3230db7a7ec107bb726d1f98375c9446c4)) | ||
| - **ui-dom-utils,ui-react-utils,ui-utils:** remove deprecated utils ([0a8c8e3](https://github.com/instructure/instructure-ui/commit/0a8c8e3230db7a7ec107bb726d1f98375c9446c4)) | ||
| ### BREAKING CHANGES | ||
| * **ui-dom-utils,ui-react-utils,ui-utils:** deprecated utils has been removed | ||
| - **ui-dom-utils,ui-react-utils,ui-utils:** deprecated utils has been removed | ||
| # [8.56.0](https://github.com/instructure/instructure-ui/compare/v8.55.1...v8.56.0) (2024-05-06) | ||
@@ -595,6 +353,2 @@ | ||
| ## [8.55.1](https://github.com/instructure/instructure-ui/compare/v8.55.0...v8.55.1) (2024-04-30) | ||
@@ -604,6 +358,2 @@ | ||
| # [8.55.0](https://github.com/instructure/instructure-ui/compare/v8.54.0...v8.55.0) (2024-04-09) | ||
@@ -613,6 +363,2 @@ | ||
| # [8.54.0](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.54.0) (2024-03-21) | ||
@@ -622,6 +368,2 @@ | ||
| ## [8.53.2](https://github.com/instructure/instructure-ui/compare/v8.53.1...v8.53.2) (2024-02-15) | ||
@@ -631,6 +373,2 @@ | ||
| ## [8.53.1](https://github.com/instructure/instructure-ui/compare/v8.53.0...v8.53.1) (2024-02-09) | ||
@@ -640,6 +378,2 @@ | ||
| # [8.53.0](https://github.com/instructure/instructure-ui/compare/v8.52.0...v8.53.0) (2024-02-08) | ||
@@ -646,0 +380,0 @@ |
@@ -26,2 +26,3 @@ /* | ||
| export { DeterministicIdContext } from "./DeterministicIdContext.js"; | ||
| export { withDeterministicId } from "./withDeterministicId.js"; | ||
| export { withDeterministicId } from "./withDeterministicId.js"; | ||
| export { useDeterministicId } from "./useDeterministicId.js"; |
+1
-1
@@ -36,2 +36,2 @@ /* | ||
| export { windowMessageListener } from "./windowMessageListener.js"; | ||
| export { DeterministicIdContext, DeterministicIdContextProvider, withDeterministicId } from "./DeterministicIdContext/index.js"; | ||
| export { DeterministicIdContext, DeterministicIdContextProvider, withDeterministicId, useDeterministicId } from "./DeterministicIdContext/index.js"; |
@@ -18,2 +18,8 @@ "use strict"; | ||
| }); | ||
| Object.defineProperty(exports, "useDeterministicId", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _useDeterministicId.useDeterministicId; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "withDeterministicId", { | ||
@@ -27,2 +33,3 @@ enumerable: true, | ||
| var _DeterministicIdContext = require("./DeterministicIdContext"); | ||
| var _withDeterministicId = require("./withDeterministicId"); | ||
| var _withDeterministicId = require("./withDeterministicId"); | ||
| var _useDeterministicId = require("./useDeterministicId"); |
+6
-0
@@ -78,2 +78,8 @@ "use strict"; | ||
| }); | ||
| Object.defineProperty(exports, "useDeterministicId", { | ||
| enumerable: true, | ||
| get: function () { | ||
| return _DeterministicIdContext.useDeterministicId; | ||
| } | ||
| }); | ||
| Object.defineProperty(exports, "windowMessageListener", { | ||
@@ -80,0 +86,0 @@ enumerable: true, |
+8
-7
| { | ||
| "name": "@instructure/ui-react-utils", | ||
| "version": "11.6.1-snapshot-0", | ||
| "version": "11.6.1-snapshot-129", | ||
| "description": "A React utility library made by Instructure Inc.", | ||
@@ -20,7 +20,7 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
| "hoist-non-react-statics": "^3.3.2", | ||
| "@instructure/ui-decorator": "11.6.1-snapshot-0", | ||
| "@instructure/console": "11.6.1-snapshot-0", | ||
| "@instructure/ui-utils": "11.6.1-snapshot-0", | ||
| "@instructure/shared-types": "11.6.1-snapshot-0", | ||
| "@instructure/ui-dom-utils": "11.6.1-snapshot-0" | ||
| "@instructure/console": "11.6.1-snapshot-129", | ||
| "@instructure/shared-types": "11.6.1-snapshot-129", | ||
| "@instructure/ui-decorator": "11.6.1-snapshot-129", | ||
| "@instructure/ui-utils": "11.6.1-snapshot-129", | ||
| "@instructure/ui-dom-utils": "11.6.1-snapshot-129" | ||
| }, | ||
@@ -31,3 +31,3 @@ "devDependencies": { | ||
| "vitest": "^3.2.2", | ||
| "@instructure/ui-babel-preset": "11.6.1-snapshot-0" | ||
| "@instructure/ui-babel-preset": "11.6.1-snapshot-129" | ||
| }, | ||
@@ -44,2 +44,3 @@ "peerDependencies": { | ||
| ".": { | ||
| "src": "./src/index.ts", | ||
| "types": "./types/index.d.ts", | ||
@@ -46,0 +47,0 @@ "import": "./es/index.js", |
@@ -28,3 +28,4 @@ /* | ||
| export { withDeterministicId } from './withDeterministicId' | ||
| export { useDeterministicId } from './useDeterministicId' | ||
| export type { DeterministicIdProviderValue } from './DeterministicIdContextProvider' | ||
| export type { WithDeterministicIdProps } from './withDeterministicId' |
+2
-1
@@ -40,3 +40,4 @@ /* | ||
| DeterministicIdContextProvider, | ||
| withDeterministicId | ||
| withDeterministicId, | ||
| useDeterministicId | ||
| } from './DeterministicIdContext' | ||
@@ -43,0 +44,0 @@ |
| export { DeterministicIdContextProvider } from './DeterministicIdContextProvider'; | ||
| export { DeterministicIdContext } from './DeterministicIdContext'; | ||
| export { withDeterministicId } from './withDeterministicId'; | ||
| export { useDeterministicId } from './useDeterministicId'; | ||
| export type { DeterministicIdProviderValue } from './DeterministicIdContextProvider'; | ||
| export type { WithDeterministicIdProps } from './withDeterministicId'; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DeterministicIdContext/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,YAAY,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AACpF,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DeterministicIdContext/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AACpF,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA"} |
+1
-1
@@ -12,3 +12,3 @@ export { callRenderProp } from './callRenderProp'; | ||
| export { windowMessageListener } from './windowMessageListener'; | ||
| export { DeterministicIdContext, DeterministicIdContextProvider, withDeterministicId } from './DeterministicIdContext'; | ||
| export { DeterministicIdContext, DeterministicIdContextProvider, withDeterministicId, useDeterministicId } from './DeterministicIdContext'; | ||
| export type { GetInteractionOptions } from './getInteraction'; | ||
@@ -15,0 +15,0 @@ export type { InteractionType } from './getInteraction'; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACpB,MAAM,0BAA0B,CAAA;AAEjC,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAC7D,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,YAAY,EACV,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,0BAA0B,CAAA"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,0BAA0B,CAAA;AAEjC,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAC7D,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,YAAY,EACV,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,0BAA0B,CAAA"} |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
285197
4.16%93
5.68%3516
6.9%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed