@instructure/ui-file-drop 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 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-file-drop
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
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -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,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['id', 'renderLabel', 'accept', 'messages', 'onClick', 'onDrop', 'onDropAccepted', 'onDropRejected', 'onDragEnter', 'onDragOver', 'onDragLeave', 'shouldEnablePreview', 'shouldAllowMultiple', 'shouldAllowRepeats', 'maxSize', 'minSize', 'interaction', 'display', 'height', 'width', 'maxWidth', 'minWidth', 'margin', 'inputRef'];
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
+ }
@@ -28,12 +28,12 @@ import keycode from 'keycode';
28
28
  import { FormFieldMessages } from '@instructure/ui-form-field/v11_6';
29
29
  import { View } from '@instructure/ui-view/v11_6';
30
30
  import { callRenderProp, passthroughProps, getInteraction, withDeterministicId } from '@instructure/ui-react-utils';
31
- import { accepts, getAcceptList } from "./utils/accepts.js";
32
- import { getEventFiles } from "./utils/getEventFiles.js";
31
+ import { accepts, getAcceptList } from './utils/accepts.js';
32
+ import { getEventFiles } from './utils/getEventFiles.js';
33
33
  import { withStyle } from '@instructure/emotion';
34
- import generateStyle from "./styles.js";
35
- import generateComponentTheme from "./theme.js";
36
- import { allowedProps } from "./props.js";
34
+ import generateStyle from './styles.js';
35
+ import generateComponentTheme from './theme.js';
36
+ import { allowedProps } from './props.js';
37
37
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
38
38
  function keyEventIsClickButton(e) {
39
39
  return e.keyCode === keycode.codes.space || e.keyCode === keycode.codes.enter;
@@ -45,7 +45,7 @@ category: components
45
45
  ---
46
46
  **/
47
47
  let FileDrop = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class FileDrop extends Component {
48
- static displayName = "FileDrop";
48
+ static displayName = 'FileDrop';
49
49
  static componentId = 'FileDrop';
50
50
  static allowedProps = allowedProps;
51
51
  static defaultProps = {
@@ -28,11 +28,11 @@ import keycode from 'keycode';
28
28
  import { FormFieldMessages } from '@instructure/ui-form-field/latest';
29
29
  import { View } from '@instructure/ui-view/latest';
30
30
  import { callRenderProp, passthroughProps, getInteraction, withDeterministicId } from '@instructure/ui-react-utils';
31
- import { accepts, getAcceptList } from "./utils/accepts.js";
32
- import { getEventFiles } from "./utils/getEventFiles.js";
31
+ import { accepts, getAcceptList } from './utils/accepts.js';
32
+ import { getEventFiles } from './utils/getEventFiles.js';
33
33
  import { withStyleNew } from '@instructure/emotion';
34
- import generateStyle from "./styles.js";
35
- import { allowedProps } from "./props.js";
34
+ import generateStyle from './styles.js';
35
+ import { allowedProps } from './props.js';
36
36
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
37
37
  function keyEventIsClickButton(e) {
38
38
  return e.keyCode === keycode.codes.space || e.keyCode === keycode.codes.enter;
@@ -44,7 +44,7 @@ category: components
44
44
  ---
45
45
  **/
46
46
  let FileDrop = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class FileDrop extends Component {
47
- static displayName = "FileDrop";
47
+ static displayName = 'FileDrop';
48
48
  static componentId = 'FileDrop';
49
49
  static allowedProps = allowedProps;
50
50
  static defaultProps = {
package/es/exports/a.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { FileDrop } from "../FileDrop/v1/index.js";
24
+
25
+ export { FileDrop } from '../FileDrop/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { FileDrop } from "../FileDrop/v2/index.js";
24
+
25
+ export { FileDrop } from '../FileDrop/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-file-drop",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "A flexible facade for an HTML file input",
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",
@@ -16,23 +16,23 @@
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
18
  "keycode": "^2",
19
- "@instructure/console": "11.7.3",
20
- "@instructure/shared-types": "11.7.3",
21
- "@instructure/emotion": "11.7.3",
22
- "@instructure/ui-color-utils": "11.7.3",
23
- "@instructure/ui-form-field": "11.7.3",
24
- "@instructure/ui-react-utils": "11.7.3",
25
- "@instructure/ui-themes": "11.7.3",
26
- "@instructure/ui-utils": "11.7.3",
27
- "@instructure/ui-view": "11.7.3",
28
- "@instructure/uid": "11.7.3"
19
+ "@instructure/console": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-form-field": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/uid": "11.7.4-pr-snapshot-1781695314229",
28
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@testing-library/jest-dom": "^6.6.3",
32
32
  "@testing-library/react": "15.0.7",
33
33
  "vitest": "^3.2.2",
34
- "@instructure/ui-axe-check": "11.7.3",
35
- "@instructure/ui-babel-preset": "11.7.3"
34
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
35
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": ">=18 <=19"
@@ -42,7 +42,6 @@
42
42
  },
43
43
  "sideEffects": false,
44
44
  "exports": {
45
- "./lib/*": "./lib/*",
46
45
  "./es/*": "./es/*",
47
46
  "./types/*": "./types/*",
48
47
  "./package.json": "./package.json",
@@ -51,28 +50,24 @@
51
50
  "src": "./src/exports/a.ts",
52
51
  "types": "./types/exports/a.d.ts",
53
52
  "import": "./es/exports/a.js",
54
- "require": "./lib/exports/a.js",
55
53
  "default": "./es/exports/a.js"
56
54
  },
57
55
  "./v11_6": {
58
56
  "src": "./src/exports/a.ts",
59
57
  "types": "./types/exports/a.d.ts",
60
58
  "import": "./es/exports/a.js",
61
- "require": "./lib/exports/a.js",
62
59
  "default": "./es/exports/a.js"
63
60
  },
64
61
  "./v11_7": {
65
62
  "src": "./src/exports/b.ts",
66
63
  "types": "./types/exports/b.d.ts",
67
64
  "import": "./es/exports/b.js",
68
- "require": "./lib/exports/b.js",
69
65
  "default": "./es/exports/b.js"
70
66
  },
71
67
  "./latest": {
72
68
  "src": "./src/exports/b.ts",
73
69
  "types": "./types/exports/b.d.ts",
74
70
  "import": "./es/exports/b.js",
75
- "require": "./lib/exports/b.js",
76
71
  "default": "./es/exports/b.js"
77
72
  }
78
73
  },
@@ -80,7 +75,7 @@
80
75
  "lint": "ui-scripts lint",
81
76
  "lint:fix": "ui-scripts lint --fix",
82
77
  "clean": "ui-scripts clean",
83
- "build": "ui-scripts build --modules es,cjs",
78
+ "build": "ui-scripts build",
84
79
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
85
80
  "build:types": "tsc -p tsconfig.build.json",
86
81
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -34,14 +34,14 @@ import {
34
34
  withDeterministicId
35
35
  } from '@instructure/ui-react-utils'
36
36
 
37
- import { accepts, getAcceptList } from './utils/accepts'
38
- import { getEventFiles } from './utils/getEventFiles'
37
+ import { accepts, getAcceptList } from './utils/accepts.js'
38
+ import { getEventFiles } from './utils/getEventFiles.js'
39
39
 
40
40
  import { withStyle } from '@instructure/emotion'
41
- import generateStyle from './styles'
42
- import generateComponentTheme from './theme'
41
+ import generateStyle from './styles.js'
42
+ import generateComponentTheme from './theme.js'
43
43
 
44
- import { allowedProps } from './props'
44
+ import { allowedProps } from './props.js'
45
45
  import type { FileDropProps, FileDropState, FileDropStyleProps } from './props'
46
46
 
47
47
  function keyEventIsClickButton(e: React.KeyboardEvent) {
@@ -56,6 +56,7 @@ category: components
56
56
  @withDeterministicId()
57
57
  @withStyle(generateStyle, generateComponentTheme)
58
58
  class FileDrop extends Component<FileDropProps, FileDropState> {
59
+ static displayName = 'FileDrop'
59
60
  static readonly componentId = 'FileDrop'
60
61
 
61
62
  static allowedProps = allowedProps
@@ -34,13 +34,13 @@ import {
34
34
  withDeterministicId
35
35
  } from '@instructure/ui-react-utils'
36
36
 
37
- import { accepts, getAcceptList } from './utils/accepts'
38
- import { getEventFiles } from './utils/getEventFiles'
37
+ import { accepts, getAcceptList } from './utils/accepts.js'
38
+ import { getEventFiles } from './utils/getEventFiles.js'
39
39
 
40
40
  import { withStyleNew } from '@instructure/emotion'
41
- import generateStyle from './styles'
41
+ import generateStyle from './styles.js'
42
42
 
43
- import { allowedProps } from './props'
43
+ import { allowedProps } from './props.js'
44
44
  import type { FileDropProps, FileDropState } from './props'
45
45
  import type { StyleParams } from './styles'
46
46
  function keyEventIsClickButton(e: React.KeyboardEvent) {
@@ -55,6 +55,7 @@ category: components
55
55
  @withDeterministicId()
56
56
  @withStyleNew(generateStyle)
57
57
  class FileDrop extends Component<FileDropProps, FileDropState> {
58
+ static displayName = 'FileDrop'
58
59
  static readonly componentId = 'FileDrop'
59
60
 
60
61
  static allowedProps = allowedProps
package/src/exports/a.ts CHANGED
@@ -22,5 +22,5 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { FileDrop } from '../FileDrop/v1'
25
+ export { FileDrop } from '../FileDrop/v1/index.js'
26
26
  export type { FileDropProps } from '../FileDrop/v1/props'
package/src/exports/b.ts CHANGED
@@ -22,5 +22,5 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { FileDrop } from '../FileDrop/v2'
25
+ export { FileDrop } from '../FileDrop/v2/index.js'
26
26
  export type { FileDropProps } from '../FileDrop/v2/props'