@instructure/ui-responsive 11.7.3 → 11.7.4-pr-snapshot-1781695314229
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/LICENSE.md +1 -0
- package/{lib/Responsive/v1/props.js → babel.config.cjs} +12 -11
- package/es/Responsive/v1/index.js +5 -4
- package/es/exports/a.js +7 -6
- package/es/utils/v1/ResponsivePropTypes.js +2 -1
- package/es/utils/v1/addElementQueryMatchListener.js +1 -1
- package/es/utils/v1/addMediaQueryMatchListener.js +2 -1
- package/package.json +11 -16
- package/src/Responsive/v1/index.tsx +5 -4
- package/src/exports/a.ts +6 -6
- package/src/utils/v1/ResponsivePropTypes.ts +2 -2
- package/src/utils/v1/addElementQueryMatchListener.ts +2 -2
- package/src/utils/v1/addMediaQueryMatchListener.ts +2 -2
- package/src/utils/v1/jsonToMediaQuery.ts +1 -1
- package/src/utils/v1/parseQuery.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Responsive/v1/index.d.ts +2 -1
- package/types/Responsive/v1/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +6 -6
- package/types/exports/a.d.ts.map +1 -1
- package/types/utils/v1/ResponsivePropTypes.d.ts +1 -1
- package/types/utils/v1/ResponsivePropTypes.d.ts.map +1 -1
- package/types/utils/v1/addElementQueryMatchListener.d.ts +2 -2
- package/types/utils/v1/addElementQueryMatchListener.d.ts.map +1 -1
- package/types/utils/v1/addMediaQueryMatchListener.d.ts +1 -1
- package/types/utils/v1/addMediaQueryMatchListener.d.ts.map +1 -1
- package/types/utils/v1/jsonToMediaQuery.d.ts +1 -1
- package/types/utils/v1/jsonToMediaQuery.d.ts.map +1 -1
- package/types/utils/v1/parseQuery.d.ts +1 -1
- package/types/utils/v1/parseQuery.d.ts.map +1 -1
- package/lib/Responsive/v1/index.js +0 -167
- package/lib/exports/a.js +0 -47
- package/lib/package.json +0 -1
- package/lib/utils/v1/QueryType.js +0 -5
- package/lib/utils/v1/ResponsivePropTypes.js +0 -69
- package/lib/utils/v1/addElementQueryMatchListener.js +0 -166
- package/lib/utils/v1/addMediaQueryMatchListener.js +0 -114
- package/lib/utils/v1/jsonToMediaQuery.js +0 -86
- package/lib/utils/v1/parseQuery.js +0 -88
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.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-responsive
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
|
|
7
15
|
|
|
8
16
|
|
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
1
|
/*
|
|
8
2
|
* The MIT License (MIT)
|
|
9
3
|
*
|
|
@@ -28,8 +22,15 @@ exports.allowedProps = void 0;
|
|
|
28
22
|
* SOFTWARE.
|
|
29
23
|
*/
|
|
30
24
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
module.exports = {
|
|
26
|
+
presets: [
|
|
27
|
+
[
|
|
28
|
+
require('@instructure/ui-babel-preset'),
|
|
29
|
+
{
|
|
30
|
+
esModules: Boolean(process.env.ES_MODULES),
|
|
31
|
+
removeConsole: process.env.NODE_ENV === 'production',
|
|
32
|
+
transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
import { Component } from 'react';
|
|
26
26
|
import { deepEqual } from '@instructure/ui-utils';
|
|
27
27
|
import { logError as error, warn } from '@instructure/console';
|
|
28
|
-
import { addElementQueryMatchListener, updateElementMatches } from
|
|
29
|
-
import { addMediaQueryMatchListener } from
|
|
28
|
+
import { addElementQueryMatchListener, updateElementMatches } from '../../utils/v1/addElementQueryMatchListener.js';
|
|
29
|
+
import { addMediaQueryMatchListener } from '../../utils/v1/addMediaQueryMatchListener.js';
|
|
30
30
|
import { findDOMNode } from '@instructure/ui-dom-utils';
|
|
31
|
-
import { allowedProps } from
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
|
+
|
|
32
33
|
/**
|
|
33
34
|
---
|
|
34
35
|
category: components
|
|
@@ -37,7 +38,7 @@ category: components
|
|
|
37
38
|
**/
|
|
38
39
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
39
40
|
class Responsive extends Component {
|
|
40
|
-
static displayName =
|
|
41
|
+
static displayName = 'Responsive';
|
|
41
42
|
static allowedProps = allowedProps;
|
|
42
43
|
static defaultProps = {
|
|
43
44
|
children: null,
|
package/es/exports/a.js
CHANGED
|
@@ -21,9 +21,10 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { Responsive } from '../Responsive/v1/index.js';
|
|
26
|
+
export { addElementQueryMatchListener } from '../utils/v1/addElementQueryMatchListener.js';
|
|
27
|
+
export { addMediaQueryMatchListener } from '../utils/v1/addMediaQueryMatchListener.js';
|
|
28
|
+
export { parseQuery } from '../utils/v1/parseQuery.js';
|
|
29
|
+
export { jsonToMediaQuery } from '../utils/v1/jsonToMediaQuery.js';
|
|
30
|
+
export { ResponsivePropTypes } from '../utils/v1/ResponsivePropTypes.js';
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
import { jsonToMediaQuery } from './jsonToMediaQuery.js';
|
|
25
26
|
const ResponsivePropTypes = {
|
|
26
27
|
/**
|
|
27
28
|
* Verify that the given prop is a properly formatted query object
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
import { parseQuery } from
|
|
24
|
+
import { parseQuery } from './parseQuery.js';
|
|
25
25
|
import { findDOMNode, getBoundingClientRect } from '@instructure/ui-dom-utils';
|
|
26
26
|
import { debounce } from '@instructure/debounce';
|
|
27
27
|
/**
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
import { matchMedia as defaultMatchMedia } from '@instructure/ui-dom-utils';
|
|
25
|
-
import { jsonToMediaQuery } from
|
|
25
|
+
import { jsonToMediaQuery } from './jsonToMediaQuery.js';
|
|
26
|
+
|
|
26
27
|
/**
|
|
27
28
|
* ---
|
|
28
29
|
* category: utilities/layout
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-responsive",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.4-pr-snapshot-1781695314229",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A component that allows for rendering a component differently based on either the element or the viewport size",
|
|
5
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
7
|
"module": "./es/index.js",
|
|
7
|
-
"main": "./lib/index.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/console": "11.7.
|
|
19
|
-
"@instructure/shared-types": "11.7.
|
|
20
|
-
"@instructure/ui-dom-utils": "11.7.
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/ui-utils": "11.7.
|
|
18
|
+
"@instructure/console": "11.7.4-pr-snapshot-1781695314229",
|
|
19
|
+
"@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
|
|
20
|
+
"@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
21
|
+
"@instructure/debounce": "11.7.4-pr-snapshot-1781695314229",
|
|
22
|
+
"@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
23
|
+
"@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@testing-library/jest-dom": "^6.6.3",
|
|
27
27
|
"@testing-library/react": "15.0.7",
|
|
28
28
|
"vitest": "^3.2.2",
|
|
29
|
-
"@instructure/ui-babel-preset": "11.7.
|
|
30
|
-
"@instructure/ui-color-utils": "11.7.
|
|
29
|
+
"@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
|
|
30
|
+
"@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=18 <=19"
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|
|
39
39
|
"exports": {
|
|
40
|
-
"./lib/*": "./lib/*",
|
|
41
40
|
"./es/*": "./es/*",
|
|
42
41
|
"./types/*": "./types/*",
|
|
43
42
|
"./package.json": "./package.json",
|
|
@@ -46,28 +45,24 @@
|
|
|
46
45
|
"src": "./src/exports/a.ts",
|
|
47
46
|
"types": "./types/exports/a.d.ts",
|
|
48
47
|
"import": "./es/exports/a.js",
|
|
49
|
-
"require": "./lib/exports/a.js",
|
|
50
48
|
"default": "./es/exports/a.js"
|
|
51
49
|
},
|
|
52
50
|
"./v11_6": {
|
|
53
51
|
"src": "./src/exports/a.ts",
|
|
54
52
|
"types": "./types/exports/a.d.ts",
|
|
55
53
|
"import": "./es/exports/a.js",
|
|
56
|
-
"require": "./lib/exports/a.js",
|
|
57
54
|
"default": "./es/exports/a.js"
|
|
58
55
|
},
|
|
59
56
|
"./v11_7": {
|
|
60
57
|
"src": "./src/exports/a.ts",
|
|
61
58
|
"types": "./types/exports/a.d.ts",
|
|
62
59
|
"import": "./es/exports/a.js",
|
|
63
|
-
"require": "./lib/exports/a.js",
|
|
64
60
|
"default": "./es/exports/a.js"
|
|
65
61
|
},
|
|
66
62
|
"./latest": {
|
|
67
63
|
"src": "./src/exports/a.ts",
|
|
68
64
|
"types": "./types/exports/a.d.ts",
|
|
69
65
|
"import": "./es/exports/a.js",
|
|
70
|
-
"require": "./lib/exports/a.js",
|
|
71
66
|
"default": "./es/exports/a.js"
|
|
72
67
|
}
|
|
73
68
|
},
|
|
@@ -75,7 +70,7 @@
|
|
|
75
70
|
"lint": "ui-scripts lint",
|
|
76
71
|
"lint:fix": "ui-scripts lint --fix",
|
|
77
72
|
"clean": "ui-scripts clean",
|
|
78
|
-
"build": "ui-scripts build
|
|
73
|
+
"build": "ui-scripts build",
|
|
79
74
|
"build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
|
|
80
75
|
"build:types": "tsc -p tsconfig.build.json",
|
|
81
76
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
@@ -30,20 +30,20 @@ import { logError as error, warn } from '@instructure/console'
|
|
|
30
30
|
import {
|
|
31
31
|
addElementQueryMatchListener,
|
|
32
32
|
updateElementMatches
|
|
33
|
-
} from '../../utils/v1/addElementQueryMatchListener'
|
|
34
|
-
import { addMediaQueryMatchListener } from '../../utils/v1/addMediaQueryMatchListener'
|
|
33
|
+
} from '../../utils/v1/addElementQueryMatchListener.js'
|
|
34
|
+
import { addMediaQueryMatchListener } from '../../utils/v1/addMediaQueryMatchListener.js'
|
|
35
35
|
import {
|
|
36
36
|
BreakpointQueries,
|
|
37
37
|
QueriesMatching,
|
|
38
38
|
UpdateMatches
|
|
39
|
-
} from '../../utils/v1/QueryType'
|
|
39
|
+
} from '../../utils/v1/QueryType.js'
|
|
40
40
|
import { findDOMNode } from '@instructure/ui-dom-utils'
|
|
41
41
|
import type {
|
|
42
42
|
ResponsiveByBreakpointProps,
|
|
43
43
|
ResponsiveProps,
|
|
44
44
|
ResponsivePropsObject
|
|
45
45
|
} from './props'
|
|
46
|
-
import { allowedProps } from './props'
|
|
46
|
+
import { allowedProps } from './props.js'
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
---
|
|
@@ -52,6 +52,7 @@ category: components
|
|
|
52
52
|
|
|
53
53
|
**/
|
|
54
54
|
class Responsive extends Component<ResponsiveProps> {
|
|
55
|
+
static displayName = 'Responsive'
|
|
55
56
|
static allowedProps = allowedProps
|
|
56
57
|
|
|
57
58
|
static defaultProps = {
|
package/src/exports/a.ts
CHANGED
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { Responsive } from '../Responsive/v1'
|
|
26
|
-
export { addElementQueryMatchListener } from '../utils/v1/addElementQueryMatchListener'
|
|
27
|
-
export { addMediaQueryMatchListener } from '../utils/v1/addMediaQueryMatchListener'
|
|
28
|
-
export { parseQuery } from '../utils/v1/parseQuery'
|
|
29
|
-
export { jsonToMediaQuery } from '../utils/v1/jsonToMediaQuery'
|
|
30
|
-
export { ResponsivePropTypes } from '../utils/v1/ResponsivePropTypes'
|
|
25
|
+
export { Responsive } from '../Responsive/v1/index.js'
|
|
26
|
+
export { addElementQueryMatchListener } from '../utils/v1/addElementQueryMatchListener.js'
|
|
27
|
+
export { addMediaQueryMatchListener } from '../utils/v1/addMediaQueryMatchListener.js'
|
|
28
|
+
export { parseQuery } from '../utils/v1/parseQuery.js'
|
|
29
|
+
export { jsonToMediaQuery } from '../utils/v1/jsonToMediaQuery.js'
|
|
30
|
+
export { ResponsivePropTypes } from '../utils/v1/ResponsivePropTypes.js'
|
|
31
31
|
|
|
32
32
|
export type {
|
|
33
33
|
ResponsiveProps,
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { jsonToMediaQuery } from './jsonToMediaQuery'
|
|
26
|
-
import { BreakpointQueries } from './QueryType'
|
|
25
|
+
import { jsonToMediaQuery } from './jsonToMediaQuery.js'
|
|
26
|
+
import { BreakpointQueries } from './QueryType.js'
|
|
27
27
|
|
|
28
28
|
const ResponsivePropTypes = {
|
|
29
29
|
/**
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
import { parseQuery, Size } from './parseQuery'
|
|
24
|
+
import { parseQuery, Size } from './parseQuery.js'
|
|
25
25
|
|
|
26
26
|
import { findDOMNode, getBoundingClientRect } from '@instructure/ui-dom-utils'
|
|
27
27
|
import { debounce } from '@instructure/debounce'
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
BreakpointQueries,
|
|
31
31
|
QueriesMatching,
|
|
32
32
|
QueryMatchListener
|
|
33
|
-
} from './QueryType'
|
|
33
|
+
} from './QueryType.js'
|
|
34
34
|
import { UIElement } from '@instructure/shared-types'
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { matchMedia as defaultMatchMedia } from '@instructure/ui-dom-utils'
|
|
25
25
|
|
|
26
|
-
import { QueriesMatching, QueryMatchListener } from './QueryType'
|
|
27
|
-
import { jsonToMediaQuery } from './jsonToMediaQuery'
|
|
26
|
+
import { QueriesMatching, QueryMatchListener } from './QueryType.js'
|
|
27
|
+
import { jsonToMediaQuery } from './jsonToMediaQuery.js'
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* ---
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
import { px } from '@instructure/ui-utils'
|
|
25
|
-
import { BreakpointQueries, ValidQueryKey } from './QueryType'
|
|
25
|
+
import { BreakpointQueries, ValidQueryKey } from './QueryType.js'
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* An object consisting of query names and boolean true false if it matches
|