-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating react-focus package and copying FocusZone code there (#11765)
* Populating react-focus as an initial package. * Fixing build errors * Re-export react-focus's FocusZone from OUFR * Change files * api extractor, tsx-editor, and script updates * Change files * fix conformance test * Remove unused test config from test-utilities * Change files * Prevent component examples test from eating errors * fix uifabric/react-focus references * revert componentexamples changes * update test * Revert "Remove unused test config from test-utilities" This reverts commit e154f87. * Fixing tslint issues. * Disabling linter and reverting deprecation-related changes. * Updating API. * Updating package.json dependencies to match those of oufr package. * Reverting deletion from OUFR package and importing from OUFR again until focus-react package is officially published. Co-authored-by: Elizabeth Craig <ecraig12345@gmail.com> Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>
- Loading branch information
1 parent
00b6694
commit da8f232
Showing
38 changed files
with
4,034 additions
and
29 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
change/@fluentui-react-focus-2020-01-29-16-53-36-react-focus-initialize.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Initial package check-in", | ||
"packageName": "@fluentui/react-focus", | ||
"email": "dzearing@microsoft.com", | ||
"commit": "4f2d8efea3622ba8c9d844c68e5ed5088b858f6f", | ||
"dependentChangeType": "patch", | ||
"date": "2020-01-30T00:53:36.322Z" | ||
} |
9 changes: 9 additions & 0 deletions
9
change/@uifabric-api-docs-2020-01-29-18-32-10-react-focus-initialize.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Add react-focus support", | ||
"packageName": "@uifabric/api-docs", | ||
"email": "elcraig@microsoft.com", | ||
"commit": "5e6d8c691d23f7881afe569ec1f19edd56242656", | ||
"dependentChangeType": "patch", | ||
"date": "2020-01-30T02:32:06.772Z" | ||
} |
9 changes: 9 additions & 0 deletions
9
change/@uifabric-tsx-editor-2020-01-29-18-32-10-react-focus-initialize.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Add react-focus support", | ||
"packageName": "@uifabric/tsx-editor", | ||
"email": "elcraig@microsoft.com", | ||
"commit": "5e6d8c691d23f7881afe569ec1f19edd56242656", | ||
"dependentChangeType": "patch", | ||
"date": "2020-01-30T02:32:10.527Z" | ||
} |
9 changes: 9 additions & 0 deletions
9
change/office-ui-fabric-react-2020-01-29-16-53-36-react-focus-initialize.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "Re-export react-focus's FocusZone from OUFR", | ||
"packageName": "office-ui-fabric-react", | ||
"email": "elcraig@microsoft.com", | ||
"commit": "4f2d8efea3622ba8c9d844c68e5ed5088b858f6f", | ||
"dependentChangeType": "patch", | ||
"date": "2020-01-30T00:53:11.772Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
*.api.json | ||
*.config.js | ||
*.log | ||
*.nuspec | ||
*.test.* | ||
*.yml | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.vscode | ||
coverage | ||
dist/*.stats.html | ||
dist/*.stats.json | ||
dist/demo*.* | ||
fabric-test* | ||
gulpfile.js | ||
images | ||
index.html | ||
jsconfig.json | ||
node_modules | ||
results | ||
src/**/* | ||
!src/**/examples/*.tsx | ||
!src/**/docs/**/*.md | ||
!src/**/*.types.ts | ||
temp | ||
tsconfig.json | ||
tsd.json | ||
tslint.json | ||
typings | ||
visualtests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
registry=https://registry.npmjs.org/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "@fluentui/react-focus", | ||
"entries": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Change Log - @fluentui/react-focus | ||
|
||
This log was last generated on Mon, 13 Jan 2020 19:25:55 GMT and should not be manually modified. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@fluentui/react-focus | ||
|
||
Copyright (c) Microsoft Corporation | ||
|
||
All rights reserved. | ||
|
||
MIT License | ||
|
||
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. | ||
|
||
Note: Usage of the fonts and icons referenced in Office UI Fabric is subject to the terms listed at https://aka.ms/fabric-assets-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# @fluentui/react-focus | ||
|
||
**React Focus components for [Fluent UI](https://fluent.microsoft.com/)** | ||
|
||
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release. | ||
|
||
To import ReactFocus components: | ||
|
||
```js | ||
import { FocusZone } from '@fluentui/react-focus'; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts", | ||
"apiReport": { | ||
"enabled": true | ||
}, | ||
"docModel": { | ||
"enabled": true, | ||
"apiJsonFilePath": "<projectFolder>/dist/<unscopedPackageName>.api.json" | ||
}, | ||
"dtsRollup": { | ||
"enabled": true | ||
}, | ||
"messages": { | ||
"extractorMessageReporting": { | ||
"ae-missing-release-tag": { | ||
"logLevel": "none" | ||
}, | ||
"ae-unresolved-link": { | ||
"logLevel": "none" | ||
} | ||
}, | ||
"tsdocMessageReporting": { | ||
"tsdoc-undefined-tag": { | ||
"logLevel": "none" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** Jest test setup file. */ | ||
|
||
const { configure } = require('enzyme'); | ||
const Adapter = require('enzyme-adapter-react-16'); | ||
|
||
// Mock requestAnimationFrame for React 16+. | ||
global.requestAnimationFrame = callback => { | ||
setTimeout(callback, 0); | ||
}; | ||
|
||
// Configure enzyme. | ||
configure({ adapter: new Adapter() }); |
Oops, something went wrong.