diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 225dd3a402d521..036771c2bafd76 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -220,7 +220,6 @@ packages/react-components/babel-preset-global-context @microsoft/teams-prg packages/react-components/react-table @microsoft/teams-prg packages/react-components/react-progress @microsoft/cxe-red @tomi-msft packages/react-components/react-persona @microsoft/cxe-red @sopranopillow -packages/react-components/react-avatar-context @microsoft/teams-prg packages/react-components/react-infobutton @microsoft/cxe-red @sopranopillow packages/react-components/react-tree @microsoft/teams-prg packages/react-components/react-virtualizer @microsoft/xc-uxe @Mitch-At-Work diff --git a/packages/react-components/react-avatar-context/.babelrc.json b/packages/react-components/react-avatar-context/.babelrc.json deleted file mode 100644 index 45fb71ca16d2c3..00000000000000 --- a/packages/react-components/react-avatar-context/.babelrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../../.babelrc-v9.json", - "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] -} diff --git a/packages/react-components/react-avatar-context/.eslintrc.json b/packages/react-components/react-avatar-context/.eslintrc.json deleted file mode 100644 index ceea884c70dccc..00000000000000 --- a/packages/react-components/react-avatar-context/.eslintrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": ["plugin:@fluentui/eslint-plugin/react"], - "root": true -} diff --git a/packages/react-components/react-avatar-context/.npmignore b/packages/react-components/react-avatar-context/.npmignore deleted file mode 100644 index f7ce568a6dbf7c..00000000000000 --- a/packages/react-components/react-avatar-context/.npmignore +++ /dev/null @@ -1,30 +0,0 @@ -.storybook/ -.vscode/ -bundle-size/ -config/ -coverage/ -docs/ -etc/ -node_modules/ -src/ -stories/ -dist/types/ -temp/ -__fixtures__ -__mocks__ -__tests__ - -*.api.json -*.log -*.spec.* -*.cy.* -*.test.* -*.yml - -# config files -*config.* -*rc.* -.editorconfig -.eslint* -.git* -.prettierignore diff --git a/packages/react-components/react-avatar-context/.swcrc b/packages/react-components/react-avatar-context/.swcrc deleted file mode 100644 index b4ffa86dee3067..00000000000000 --- a/packages/react-components/react-avatar-context/.swcrc +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/swcrc", - "exclude": [ - "/testing", - "/**/*.cy.ts", - "/**/*.cy.tsx", - "/**/*.spec.ts", - "/**/*.spec.tsx", - "/**/*.test.ts", - "/**/*.test.tsx" - ], - "jsc": { - "parser": { - "syntax": "typescript", - "tsx": true, - "decorators": false, - "dynamicImport": false - }, - "externalHelpers": true, - "transform": { - "react": { - "runtime": "classic", - "useSpread": true - } - }, - "target": "es2019" - }, - "minify": false, - "sourceMaps": true -} diff --git a/packages/react-components/react-avatar-context/LICENSE b/packages/react-components/react-avatar-context/LICENSE deleted file mode 100644 index 8ffd46fad3eca9..00000000000000 --- a/packages/react-components/react-avatar-context/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -@fluentui/react-avatar-context - -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 Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license diff --git a/packages/react-components/react-avatar-context/README.md b/packages/react-components/react-avatar-context/README.md deleted file mode 100644 index c3ad62ac1a187e..00000000000000 --- a/packages/react-components/react-avatar-context/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# @fluentui/react-avatar-context - -**React Avatar Context components for [Fluent UI React](https://react.fluentui.dev/)** - -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. diff --git a/packages/react-components/react-avatar-context/config/api-extractor.json b/packages/react-components/react-avatar-context/config/api-extractor.json deleted file mode 100644 index e533bf30b48a2b..00000000000000 --- a/packages/react-components/react-avatar-context/config/api-extractor.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "@fluentui/scripts-api-extractor/api-extractor.common.v-next.json" -} diff --git a/packages/react-components/react-avatar-context/config/tests.js b/packages/react-components/react-avatar-context/config/tests.js deleted file mode 100644 index 2e211ae9e21420..00000000000000 --- a/packages/react-components/react-avatar-context/config/tests.js +++ /dev/null @@ -1 +0,0 @@ -/** Jest test setup file. */ diff --git a/packages/react-components/react-avatar-context/docs/Spec.md b/packages/react-components/react-avatar-context/docs/Spec.md deleted file mode 100644 index 1cd591a26b2fdc..00000000000000 --- a/packages/react-components/react-avatar-context/docs/Spec.md +++ /dev/null @@ -1,63 +0,0 @@ -# @fluentui/react-avatar-context Spec - -## Background - -_Description and use cases of this component_ - -## Prior Art - -_Include background research done for this component_ - -- _Link to Open UI research_ -- _Link to comparison of v7 and v0_ -- _Link to GitHub epic issue for the converged component_ - -## Sample Code - -_Provide some representative example code that uses the proposed API for the component_ - -## Variants - -_Describe visual or functional variants of this control, if applicable. For example, a slider could have a 2D variant._ - -## API - -_List the **Props** and **Slots** proposed for the component. Ideally this would just be a link to the component's `.types.ts` file_ - -## Structure - -- _**Public**_ -- _**Internal**_ -- _**DOM** - how the component will be rendered as HTML elements_ - -## Migration - -_Describe what will need to be done to upgrade from the existing implementations:_ - -- _Migration from v8_ -- _Migration from v0_ - -## Behaviors - -_Explain how the component will behave in use, including:_ - -- _Component States_ -- _Interaction_ - - _Keyboard_ - - _Cursor_ - - _Touch_ - - _Screen readers_ - -## Accessibility - -Base accessibility information is included in the design document. After the spec is filled and review, outcomes from it need to be communicated to design and incorporated in the design document. - -- Decide whether to use **native element** or folow **ARIA** and provide reasons -- Identify the **[ARIA](https://www.w3.org/TR/wai-aria-practices-1.2/) pattern** and, if the component is listed there, follow its specification as possible. -- Identify accessibility **variants**, the `role` ([ARIA roles](https://www.w3.org/TR/wai-aria-1.1/#role_definitions)) of the component, its `slots` and `aria-*` props. -- Describe the **keyboard navigation**: Tab Oder and Arrow Key Navigation. Describe any other keyboard **shortcuts** used -- Specify texts for **state change announcements** - [ARIA live regions - ](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions) (number of available items in dropdown, error messages, confirmations, ...) -- Identify UI parts that appear on **hover or focus** and specify keyboard and screen reader interaction with them -- List cases when **focus** needs to be **trapped** in sections of the UI (for dialogs and popups or for hierarchical navigation) -- List cases when **focus** needs to be **moved programatically** (if parts of the UI are appearing/disappearing or other cases) diff --git a/packages/react-components/react-avatar-context/etc/react-avatar-context.api.md b/packages/react-components/react-avatar-context/etc/react-avatar-context.api.md deleted file mode 100644 index 30d00c02ec77fb..00000000000000 --- a/packages/react-components/react-avatar-context/etc/react-avatar-context.api.md +++ /dev/null @@ -1,9 +0,0 @@ -## API Report File for "@fluentui/react-avatar-context" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -// (No @packageDocumentation comment for this package) - -``` diff --git a/packages/react-components/react-avatar-context/jest.config.js b/packages/react-components/react-avatar-context/jest.config.js deleted file mode 100644 index 1d956ea00a0f0b..00000000000000 --- a/packages/react-components/react-avatar-context/jest.config.js +++ /dev/null @@ -1,21 +0,0 @@ -// @ts-check - -/** - * @type {import('@jest/types').Config.InitialOptions} - */ -module.exports = { - displayName: 'react-avatar-context', - preset: '../../../jest.preset.js', - globals: { - 'ts-jest': { - tsconfig: '/tsconfig.spec.json', - isolatedModules: true, - }, - }, - transform: { - '^.+\\.tsx?$': 'ts-jest', - }, - coverageDirectory: './coverage', - setupFilesAfterEnv: ['./config/tests.js'], - snapshotSerializers: ['@griffel/jest-serializer'], -}; diff --git a/packages/react-components/react-avatar-context/just.config.ts b/packages/react-components/react-avatar-context/just.config.ts deleted file mode 100644 index b7b2c9a33bf435..00000000000000 --- a/packages/react-components/react-avatar-context/just.config.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { preset, task } from '@fluentui/scripts-tasks'; - -preset(); - -task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-avatar-context/package.json b/packages/react-components/react-avatar-context/package.json deleted file mode 100644 index 4d9325f6f2e7aa..00000000000000 --- a/packages/react-components/react-avatar-context/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "@fluentui/react-avatar-context", - "version": "9.0.0-alpha.0", - "private": true, - "description": "Context to override avatar props", - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "typings": "./dist/index.d.ts", - "sideEffects": false, - "repository": { - "type": "git", - "url": "https://github.com/microsoft/fluentui" - }, - "license": "MIT", - "scripts": { - "build": "just-scripts build", - "clean": "just-scripts clean", - "code-style": "just-scripts code-style", - "just": "just-scripts", - "lint": "just-scripts lint", - "test": "jest --passWithNoTests", - "generate-api": "just-scripts generate-api", - "type-check": "tsc -b tsconfig.json" - }, - "devDependencies": { - "@fluentui/eslint-plugin": "*", - "@fluentui/react-conformance": "*", - "@fluentui/react-conformance-griffel": "9.0.0-beta.20", - "@fluentui/scripts-api-extractor": "*", - "@fluentui/scripts-tasks": "*" - }, - "dependencies": { - "@fluentui/react-theme": "^9.1.7", - "@fluentui/react-utilities": "^9.8.0", - "@griffel/react": "^1.5.2", - "@swc/helpers": "^0.4.14" - }, - "peerDependencies": { - "@types/react": ">=16.8.0 <19.0.0", - "@types/react-dom": ">=16.8.0 <19.0.0", - "react": ">=16.8.0 <19.0.0", - "react-dom": ">=16.8.0 <19.0.0" - }, - "beachball": { - "disallowedChangeTypes": [ - "major", - "minor", - "patch" - ] - }, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "node": "./lib-commonjs/index.js", - "import": "./lib/index.js", - "require": "./lib-commonjs/index.js" - }, - "./package.json": "./package.json" - } -} diff --git a/packages/react-components/react-avatar-context/src/index.ts b/packages/react-components/react-avatar-context/src/index.ts deleted file mode 100644 index aacbad0068e241..00000000000000 --- a/packages/react-components/react-avatar-context/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -// TODO: replace with real exports -export {}; diff --git a/packages/react-components/react-avatar-context/tsconfig.json b/packages/react-components/react-avatar-context/tsconfig.json deleted file mode 100644 index 12ca516af1c5b2..00000000000000 --- a/packages/react-components/react-avatar-context/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "../../../tsconfig.base.json", - "compilerOptions": { - "target": "ES2019", - "noEmit": true, - "isolatedModules": true, - "importHelpers": true, - "jsx": "react", - "noUnusedLocals": true, - "preserveConstEnums": true - }, - "include": [], - "files": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/packages/react-components/react-avatar-context/tsconfig.lib.json b/packages/react-components/react-avatar-context/tsconfig.lib.json deleted file mode 100644 index b2da24eff1b32f..00000000000000 --- a/packages/react-components/react-avatar-context/tsconfig.lib.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "noEmit": false, - "lib": ["ES2019", "dom"], - "declaration": true, - "declarationDir": "../../../dist/out-tsc/types", - "outDir": "../../../dist/out-tsc", - "inlineSources": true, - "types": ["static-assets", "environment"] - }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx"], - "include": ["./src/**/*.ts", "./src/**/*.tsx"] -} diff --git a/packages/react-components/react-avatar-context/tsconfig.spec.json b/packages/react-components/react-avatar-context/tsconfig.spec.json deleted file mode 100644 index 469fcba4d7ba75..00000000000000 --- a/packages/react-components/react-avatar-context/tsconfig.spec.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "CommonJS", - "outDir": "dist", - "types": ["jest", "node"] - }, - "include": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx", "**/*.d.ts"] -} diff --git a/tsconfig.base.json b/tsconfig.base.json index b994a894ae86fd..eda4141fbf5208 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -25,7 +25,6 @@ "@fluentui/react-alert": ["packages/react-components/react-alert/src/index.ts"], "@fluentui/react-aria": ["packages/react-components/react-aria/src/index.ts"], "@fluentui/react-avatar": ["packages/react-components/react-avatar/src/index.ts"], - "@fluentui/react-avatar-context": ["packages/react-components/react-avatar-context/src/index.ts"], "@fluentui/react-badge": ["packages/react-components/react-badge/src/index.ts"], "@fluentui/react-breadcrumb": ["packages/react-components/react-breadcrumb/src/index.ts"], "@fluentui/react-button": ["packages/react-components/react-button/src/index.ts"], diff --git a/workspace.json b/workspace.json index 426abf087bf6bb..c9bcecd326ebbe 100644 --- a/workspace.json +++ b/workspace.json @@ -318,13 +318,6 @@ "tags": ["vNext", "platform:web"], "implicitDependencies": [] }, - "@fluentui/react-avatar-context": { - "root": "packages/react-components/react-avatar-context", - "projectType": "library", - "implicitDependencies": [], - "sourceRoot": "packages/react-components/react-avatar-context/src", - "tags": ["vNext", "platform:web"] - }, "@fluentui/react-badge": { "root": "packages/react-components/react-badge", "projectType": "library",