@lucasols/dnd-kit-accessibility 0.1.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 ADDED
@@ -0,0 +1,89 @@
1
+ # @dnd-kit/accessibility
2
+
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#776](https://github.com/clauderic/dnd-kit/pull/776) [`3978c43`](https://github.com/clauderic/dnd-kit/commit/3978c43c6b045f10b75f47ad8bbea38a84437bd6) Thanks [@clauderic](https://github.com/clauderic)! - The ARIA live region element used for screen reader announcements is now positioned using `position: fixed` instead of `position: absolute`. As of `@dnd-kit/core^6.0.0`, the live region element is no longer portaled by default into the `document.body`. This change was introduced in order to fix issues with portaled live regions. However, this change can introduce visual regressions when using absolutely positioned elements, since the live region element is constrained to the stacking and position context of its closest positioned ancestor. Using fixed position ensures the element does not introduce visual regressions.
8
+
9
+ ## 3.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`a9d92cf`](https://github.com/clauderic/dnd-kit/commit/a9d92cf1fa35dd957e6c5915a13dfd2af134c103) [#174](https://github.com/clauderic/dnd-kit/pull/174) Thanks [@clauderic](https://github.com/clauderic)! - Distributed assets now only target modern browsers. [Browserlist](https://github.com/browserslist/browserslist) config:
14
+
15
+ ```
16
+ defaults
17
+ last 2 version
18
+ not IE 11
19
+ not dead
20
+ ```
21
+
22
+ If you need to support older browsers, include the appropriate polyfills in your project's build process.
23
+
24
+ ### Patch Changes
25
+
26
+ - [`b406cb9`](https://github.com/clauderic/dnd-kit/commit/b406cb9251beef8677d05c45ec42bab7581a86dc) [#187](https://github.com/clauderic/dnd-kit/pull/187) Thanks [@clauderic](https://github.com/clauderic)! - Introduced the `useDndMonitor` hook. The `useDndMonitor` hook can be used within components wrapped in a `DndContext` provider to monitor the different drag and drop events that happen for that `DndContext`.
27
+
28
+ Example usage:
29
+
30
+ ```tsx
31
+ import {DndContext, useDndMonitor} from '@dnd-kit/core';
32
+
33
+ function App() {
34
+ return (
35
+ <DndContext>
36
+ <Component />
37
+ </DndContext>
38
+ );
39
+ }
40
+
41
+ function Component() {
42
+ useDndMonitor({
43
+ onDragStart(event) {},
44
+ onDragMove(event) {},
45
+ onDragOver(event) {},
46
+ onDragEnd(event) {},
47
+ onDragCancel(event) {},
48
+ });
49
+ }
50
+ ```
51
+
52
+ ## 2.0.0
53
+
54
+ ### Major Changes
55
+
56
+ - [`2833337`](https://github.com/clauderic/dnd-kit/commit/2833337043719853902c3989dfcd5b55ae9ddc73) [#186](https://github.com/clauderic/dnd-kit/pull/186) Thanks [@clauderic](https://github.com/clauderic)! - Simplify `useAnnouncement` hook to only return a single `announcement` rather than `entries`. Similarly, the `LiveRegion` component now only accepts a single `announcement` rather than `entries.
57
+
58
+ - The current strategy used in the useAnnouncement hook is needlessly complex. It's not actually necessary to render multiple announcements at once within the LiveRegion component. It's sufficient to render a single announcement at a time. It's also un-necessary to clean up the announcements after they have been announced, especially now that the role="status" attribute has been added to LiveRegion, keeping the last announcement rendered means users can refer to the last status.
59
+
60
+ ### Patch Changes
61
+
62
+ - [`c24bdb3`](https://github.com/clauderic/dnd-kit/commit/c24bdb3723f1e3e4c474439f837a19c6d48059fb) [#184](https://github.com/clauderic/dnd-kit/pull/184) Thanks [@clauderic](https://github.com/clauderic)! - Tweaked LiveRegion component:
63
+ - Entries are now rendered without wrapper `span` elements. Having wrapper `span` elements causes VoiceOver on macOS to try to move the VoiceOver cursor to the live region, which interferes with scrolling. This issue is not exhibited when rendering announcement entries as plain text without wrapper spans.
64
+ - Added the `role="status"` attribute to the LiveRegion wrapper element.
65
+ - Added the `white-space: no-wrap;` property to ensure that text does not wrap.
66
+
67
+ ## 1.0.2
68
+
69
+ ### Patch Changes
70
+
71
+ - [`423610c`](https://github.com/clauderic/dnd-kit/commit/423610ca48c5e5ca95545fdb5c5cfcfbd3d233ba) [#56](https://github.com/clauderic/dnd-kit/pull/56) Thanks [@clauderic](https://github.com/clauderic)! - Add MIT license to package.json and distributed files
72
+
73
+ ## 1.0.1
74
+
75
+ ### Patch Changes
76
+
77
+ - [`310bbd6`](https://github.com/clauderic/dnd-kit/commit/310bbd6370e85f8fb16cad149e6254600a5beb3a) [#37](https://github.com/clauderic/dnd-kit/pull/37) Thanks [@nickpresta](https://github.com/nickpresta)! - Fix typo in package.json repository URL
78
+
79
+ ## 1.0.0
80
+
81
+ ### Major Changes
82
+
83
+ - [`2912350`](https://github.com/clauderic/dnd-kit/commit/2912350c5008c2b0edda3bae30b5075a852dea63) Thanks [@clauderic](https://github.com/clauderic)! - Initial public release.
84
+
85
+ ## 0.1.0
86
+
87
+ ### Minor Changes
88
+
89
+ - [`7bd4568`](https://github.com/clauderic/dnd-kit/commit/7bd4568e9f339552fd73a9a4c888460b11195a5e) [#30](https://github.com/clauderic/dnd-kit/pull/30) - Initial beta release, authored by [@clauderic](https://github.com/clauderic).
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021, Claudéric Demers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @dnd-kit/accessibility
2
+
3
+ [![Stable release](https://img.shields.io/npm/v/@dnd-kit/accessibility.svg)](https://npm.im/@dnd-kit/accessibility)
4
+
5
+ A generic set of components and hooks to help with live region announcements and screen reader instructions. This package is used internally by `@dnd-kit/core`.
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ id: string;
4
+ value: string;
5
+ }
6
+ export declare function HiddenText({ id, value }: Props): JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { HiddenText } from './HiddenText';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id: string;
4
+ announcement: string;
5
+ }
6
+ export declare function LiveRegion({ id, announcement }: Props): JSX.Element;
@@ -0,0 +1 @@
1
+ export { LiveRegion } from './LiveRegion';
@@ -0,0 +1,2 @@
1
+ export { HiddenText } from './HiddenText';
2
+ export { LiveRegion } from './LiveRegion';
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
7
+ var React = require('react');
8
+ var React__default = _interopDefault(React);
9
+
10
+ const hiddenStyles = {
11
+ display: 'none'
12
+ };
13
+ function HiddenText(_ref) {
14
+ let {
15
+ id,
16
+ value
17
+ } = _ref;
18
+ return React__default.createElement("div", {
19
+ id: id,
20
+ style: hiddenStyles
21
+ }, value);
22
+ }
23
+
24
+ const visuallyHidden = {
25
+ position: 'fixed',
26
+ width: 1,
27
+ height: 1,
28
+ margin: -1,
29
+ border: 0,
30
+ padding: 0,
31
+ overflow: 'hidden',
32
+ clip: 'rect(0 0 0 0)',
33
+ clipPath: 'inset(100%)',
34
+ whiteSpace: 'nowrap'
35
+ };
36
+ function LiveRegion(_ref) {
37
+ let {
38
+ id,
39
+ announcement
40
+ } = _ref;
41
+ return React__default.createElement("div", {
42
+ id: id,
43
+ style: visuallyHidden,
44
+ role: "status",
45
+ "aria-live": "assertive",
46
+ "aria-atomic": true
47
+ }, announcement);
48
+ }
49
+
50
+ function useAnnouncement() {
51
+ const [announcement, setAnnouncement] = React.useState('');
52
+ const announce = React.useCallback(value => {
53
+ if (value != null) {
54
+ setAnnouncement(value);
55
+ }
56
+ }, []);
57
+ return {
58
+ announce,
59
+ announcement
60
+ };
61
+ }
62
+
63
+ exports.HiddenText = HiddenText;
64
+ exports.LiveRegion = LiveRegion;
65
+ exports.useAnnouncement = useAnnouncement;
66
+ //# sourceMappingURL=dnd-kit-accessibility.cjs.development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dnd-kit-accessibility.cjs.development.js","sources":["../src/components/HiddenText/HiddenText.tsx","../src/components/LiveRegion/LiveRegion.tsx","../src/hooks/useAnnouncement.ts"],"sourcesContent":["import React from 'react';\n\ninterface Props {\n id: string;\n value: string;\n}\n\nconst hiddenStyles: React.CSSProperties = {\n display: 'none',\n};\n\nexport function HiddenText({id, value}: Props) {\n return (\n <div id={id} style={hiddenStyles}>\n {value}\n </div>\n );\n}\n","import React from 'react';\n\nexport interface Props {\n id: string;\n announcement: string;\n}\n\n// Hide element visually but keep it readable by screen readers\nconst visuallyHidden: React.CSSProperties = {\n position: 'fixed',\n width: 1,\n height: 1,\n margin: -1,\n border: 0,\n padding: 0,\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(100%)',\n whiteSpace: 'nowrap',\n};\n\nexport function LiveRegion({id, announcement}: Props) {\n return (\n <div\n id={id}\n style={visuallyHidden}\n role=\"status\"\n aria-live=\"assertive\"\n aria-atomic\n >\n {announcement}\n </div>\n );\n}\n","import {useCallback, useState} from 'react';\n\nexport function useAnnouncement() {\n const [announcement, setAnnouncement] = useState('');\n const announce = useCallback((value: string | undefined) => {\n if (value != null) {\n setAnnouncement(value);\n }\n }, []);\n\n return {announce, announcement} as const;\n}\n"],"names":["hiddenStyles","display","HiddenText","id","value","React","style","visuallyHidden","position","width","height","margin","border","padding","overflow","clip","clipPath","whiteSpace","LiveRegion","announcement","role","useAnnouncement","setAnnouncement","useState","announce","useCallback"],"mappings":";;;;;;;;;AAOA,MAAMA,YAAY,GAAwB;EACxCC,OAAO,EAAE;AAD+B,CAA1C;SAIgBC;MAAW;IAACC,EAAD;IAAKC;;EAC9B,OACEC,4BAAA,MAAA;IAAKF,EAAE,EAAEA;IAAIG,KAAK,EAAEN;GAApB,EACGI,KADH,CADF;AAKD;;ACTD,MAAMG,cAAc,GAAwB;EAC1CC,QAAQ,EAAE,OADgC;EAE1CC,KAAK,EAAE,CAFmC;EAG1CC,MAAM,EAAE,CAHkC;EAI1CC,MAAM,EAAE,CAAC,CAJiC;EAK1CC,MAAM,EAAE,CALkC;EAM1CC,OAAO,EAAE,CANiC;EAO1CC,QAAQ,EAAE,QAPgC;EAQ1CC,IAAI,EAAE,eARoC;EAS1CC,QAAQ,EAAE,aATgC;EAU1CC,UAAU,EAAE;AAV8B,CAA5C;AAaA,SAAgBC;MAAW;IAACf,EAAD;IAAKgB;;EAC9B,OACEd,4BAAA,MAAA;IACEF,EAAE,EAAEA;IACJG,KAAK,EAAEC;IACPa,IAAI,EAAC;iBACK;;GAJZ,EAOGD,YAPH,CADF;AAWD;;SC/BeE;EACd,MAAM,CAACF,YAAD,EAAeG,eAAf,IAAkCC,cAAQ,CAAC,EAAD,CAAhD;EACA,MAAMC,QAAQ,GAAGC,iBAAW,CAAErB,KAAD;IAC3B,IAAIA,KAAK,IAAI,IAAb,EAAmB;MACjBkB,eAAe,CAAClB,KAAD,CAAf;;GAFwB,EAIzB,EAJyB,CAA5B;EAMA,OAAO;IAACoB,QAAD;IAAWL;GAAlB;AACD;;;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),n=(e=t)&&"object"==typeof e&&"default"in e?e.default:e;const i={display:"none"},r={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};exports.HiddenText=function(e){let{id:t,value:r}=e;return n.createElement("div",{id:t,style:i},r)},exports.LiveRegion=function(e){let{id:t,announcement:i}=e;return n.createElement("div",{id:t,style:r,role:"status","aria-live":"assertive","aria-atomic":!0},i)},exports.useAnnouncement=function(){const[e,n]=t.useState("");return{announce:t.useCallback(e=>{null!=e&&n(e)},[]),announcement:e}};
2
+ //# sourceMappingURL=dnd-kit-accessibility.cjs.production.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dnd-kit-accessibility.cjs.production.min.js","sources":["../src/components/HiddenText/HiddenText.tsx","../src/components/LiveRegion/LiveRegion.tsx","../src/hooks/useAnnouncement.ts"],"sourcesContent":["import React from 'react';\n\ninterface Props {\n id: string;\n value: string;\n}\n\nconst hiddenStyles: React.CSSProperties = {\n display: 'none',\n};\n\nexport function HiddenText({id, value}: Props) {\n return (\n <div id={id} style={hiddenStyles}>\n {value}\n </div>\n );\n}\n","import React from 'react';\n\nexport interface Props {\n id: string;\n announcement: string;\n}\n\n// Hide element visually but keep it readable by screen readers\nconst visuallyHidden: React.CSSProperties = {\n position: 'fixed',\n width: 1,\n height: 1,\n margin: -1,\n border: 0,\n padding: 0,\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(100%)',\n whiteSpace: 'nowrap',\n};\n\nexport function LiveRegion({id, announcement}: Props) {\n return (\n <div\n id={id}\n style={visuallyHidden}\n role=\"status\"\n aria-live=\"assertive\"\n aria-atomic\n >\n {announcement}\n </div>\n );\n}\n","import {useCallback, useState} from 'react';\n\nexport function useAnnouncement() {\n const [announcement, setAnnouncement] = useState('');\n const announce = useCallback((value: string | undefined) => {\n if (value != null) {\n setAnnouncement(value);\n }\n }, []);\n\n return {announce, announcement} as const;\n}\n"],"names":["hiddenStyles","display","visuallyHidden","position","width","height","margin","border","padding","overflow","clip","clipPath","whiteSpace","id","value","React","style","announcement","role","setAnnouncement","useState","announce","useCallback"],"mappings":"oJAOA,MAAMA,EAAoC,CACxCC,QAAS,QCALC,EAAsC,CAC1CC,SAAU,QACVC,MAAO,EACPC,OAAQ,EACRC,QAAS,EACTC,OAAQ,EACRC,QAAS,EACTC,SAAU,SACVC,KAAM,gBACNC,SAAU,cACVC,WAAY,6CDPaC,GAACA,EAADC,MAAKA,KAC9B,OACEC,uBAAKF,GAAIA,EAAIG,MAAOhB,GACjBc,uCCOoBD,GAACA,EAADI,aAAKA,KAC9B,OACEF,uBACEF,GAAIA,EACJG,MAAOd,EACPgB,KAAK,qBACK,8BAGTD,uCC3BL,MAAOA,EAAcE,GAAmBC,WAAS,IAOjD,MAAO,CAACC,SANSC,cAAaR,IACf,MAATA,GACFK,EAAgBL,IAEjB,IAEeG,aAAAA"}
@@ -0,0 +1,57 @@
1
+ import React, { useState, useCallback } from 'react';
2
+
3
+ const hiddenStyles = {
4
+ display: 'none'
5
+ };
6
+ function HiddenText(_ref) {
7
+ let {
8
+ id,
9
+ value
10
+ } = _ref;
11
+ return React.createElement("div", {
12
+ id: id,
13
+ style: hiddenStyles
14
+ }, value);
15
+ }
16
+
17
+ const visuallyHidden = {
18
+ position: 'fixed',
19
+ width: 1,
20
+ height: 1,
21
+ margin: -1,
22
+ border: 0,
23
+ padding: 0,
24
+ overflow: 'hidden',
25
+ clip: 'rect(0 0 0 0)',
26
+ clipPath: 'inset(100%)',
27
+ whiteSpace: 'nowrap'
28
+ };
29
+ function LiveRegion(_ref) {
30
+ let {
31
+ id,
32
+ announcement
33
+ } = _ref;
34
+ return React.createElement("div", {
35
+ id: id,
36
+ style: visuallyHidden,
37
+ role: "status",
38
+ "aria-live": "assertive",
39
+ "aria-atomic": true
40
+ }, announcement);
41
+ }
42
+
43
+ function useAnnouncement() {
44
+ const [announcement, setAnnouncement] = useState('');
45
+ const announce = useCallback(value => {
46
+ if (value != null) {
47
+ setAnnouncement(value);
48
+ }
49
+ }, []);
50
+ return {
51
+ announce,
52
+ announcement
53
+ };
54
+ }
55
+
56
+ export { HiddenText, LiveRegion, useAnnouncement };
57
+ //# sourceMappingURL=dnd-kit-accessibility.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dnd-kit-accessibility.esm.js","sources":["../src/components/HiddenText/HiddenText.tsx","../src/components/LiveRegion/LiveRegion.tsx","../src/hooks/useAnnouncement.ts"],"sourcesContent":["import React from 'react';\n\ninterface Props {\n id: string;\n value: string;\n}\n\nconst hiddenStyles: React.CSSProperties = {\n display: 'none',\n};\n\nexport function HiddenText({id, value}: Props) {\n return (\n <div id={id} style={hiddenStyles}>\n {value}\n </div>\n );\n}\n","import React from 'react';\n\nexport interface Props {\n id: string;\n announcement: string;\n}\n\n// Hide element visually but keep it readable by screen readers\nconst visuallyHidden: React.CSSProperties = {\n position: 'fixed',\n width: 1,\n height: 1,\n margin: -1,\n border: 0,\n padding: 0,\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(100%)',\n whiteSpace: 'nowrap',\n};\n\nexport function LiveRegion({id, announcement}: Props) {\n return (\n <div\n id={id}\n style={visuallyHidden}\n role=\"status\"\n aria-live=\"assertive\"\n aria-atomic\n >\n {announcement}\n </div>\n );\n}\n","import {useCallback, useState} from 'react';\n\nexport function useAnnouncement() {\n const [announcement, setAnnouncement] = useState('');\n const announce = useCallback((value: string | undefined) => {\n if (value != null) {\n setAnnouncement(value);\n }\n }, []);\n\n return {announce, announcement} as const;\n}\n"],"names":["hiddenStyles","display","HiddenText","id","value","React","style","visuallyHidden","position","width","height","margin","border","padding","overflow","clip","clipPath","whiteSpace","LiveRegion","announcement","role","useAnnouncement","setAnnouncement","useState","announce","useCallback"],"mappings":";;AAOA,MAAMA,YAAY,GAAwB;EACxCC,OAAO,EAAE;AAD+B,CAA1C;SAIgBC;MAAW;IAACC,EAAD;IAAKC;;EAC9B,OACEC,mBAAA,MAAA;IAAKF,EAAE,EAAEA;IAAIG,KAAK,EAAEN;GAApB,EACGI,KADH,CADF;AAKD;;ACTD,MAAMG,cAAc,GAAwB;EAC1CC,QAAQ,EAAE,OADgC;EAE1CC,KAAK,EAAE,CAFmC;EAG1CC,MAAM,EAAE,CAHkC;EAI1CC,MAAM,EAAE,CAAC,CAJiC;EAK1CC,MAAM,EAAE,CALkC;EAM1CC,OAAO,EAAE,CANiC;EAO1CC,QAAQ,EAAE,QAPgC;EAQ1CC,IAAI,EAAE,eARoC;EAS1CC,QAAQ,EAAE,aATgC;EAU1CC,UAAU,EAAE;AAV8B,CAA5C;AAaA,SAAgBC;MAAW;IAACf,EAAD;IAAKgB;;EAC9B,OACEd,mBAAA,MAAA;IACEF,EAAE,EAAEA;IACJG,KAAK,EAAEC;IACPa,IAAI,EAAC;iBACK;;GAJZ,EAOGD,YAPH,CADF;AAWD;;SC/BeE;EACd,MAAM,CAACF,YAAD,EAAeG,eAAf,IAAkCC,QAAQ,CAAC,EAAD,CAAhD;EACA,MAAMC,QAAQ,GAAGC,WAAW,CAAErB,KAAD;IAC3B,IAAIA,KAAK,IAAI,IAAb,EAAmB;MACjBkB,eAAe,CAAClB,KAAD,CAAf;;GAFwB,EAIzB,EAJyB,CAA5B;EAMA,OAAO;IAACoB,QAAD;IAAWL;GAAlB;AACD;;;;"}
@@ -0,0 +1 @@
1
+ export { useAnnouncement } from './useAnnouncement';
@@ -0,0 +1,4 @@
1
+ export declare function useAnnouncement(): {
2
+ readonly announce: (value: string | undefined) => void;
3
+ readonly announcement: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ export { HiddenText, LiveRegion } from './components';
2
+ export { useAnnouncement } from './hooks';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./dnd-kit-accessibility.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./dnd-kit-accessibility.cjs.development.js')
8
+ }
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@lucasols/dnd-kit-accessibility",
3
+ "version": "0.1.1",
4
+ "description": "A generic toolkit to help with accessibility",
5
+ "author": "Claudéric Demers",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/clauderic/dnd-kit.git",
10
+ "directory": "packages/accessibility"
11
+ },
12
+ "scripts": {
13
+ "start": "tsdx watch --tsconfig tsconfig.build.json --verbose --noClean",
14
+ "build": "tsdx build --tsconfig tsconfig.build.json",
15
+ "test": "tsdx test",
16
+ "lint": "tsdx lint",
17
+ "prepublish": "npm run build"
18
+ },
19
+ "main": "dist/index.js",
20
+ "module": "dist/accessibility.esm.js",
21
+ "typings": "dist/index.d.ts",
22
+ "files": [
23
+ "README.md",
24
+ "CHANGELOG.md",
25
+ "dist"
26
+ ],
27
+ "peerDependencies": {
28
+ "react": ">=16.8.0"
29
+ },
30
+ "dependencies": {
31
+ "tslib": "^2.0.0"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "gitHead": "d4c160d488c7d4e49dba5aee2bbb3ac7a8acc71b"
37
+ }