Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,13 @@ packages/tokens @microsoft/teams-prg
packages/react-components/react-tags @microsoft/cxe-red @microsoft/teams-prg
Comment thread
Hotell marked this conversation as resolved.
Comment thread
Hotell marked this conversation as resolved.
packages/react-components/react-tags/library @microsoft/cxe-red @microsoft/teams-prg
packages/react-components/react-tags/stories @microsoft/cxe-red @microsoft/teams-prg
packages/react-components/react-migration-v0-v9 @microsoft/teams-prg
packages/react-components/react-migration-v0-v9/library @microsoft/teams-prg
packages/react-components/react-migration-v0-v9/stories @microsoft/teams-prg
packages/react-components/react-datepicker-compat @microsoft/cxe-red @sopranopillow @khmakoto
packages/react-components/react-datepicker-compat/library @microsoft/cxe-red @sopranopillow @khmakoto
packages/react-components/react-datepicker-compat/stories @microsoft/cxe-red @sopranopillow @khmakoto
packages/react-components/react-migration-v8-v9 @microsoft/cxe-red @geoffcoxmsft
packages/react-components/react-migration-v8-v9/library @microsoft/cxe-red @geoffcoxmsft
packages/react-components/react-migration-v8-v9/stories @microsoft/cxe-red @geoffcoxmsft
packages/react-components/react-breadcrumb @microsoft/cxe-prg
packages/react-components/react-breadcrumb/library @microsoft/cxe-prg
packages/react-components/react-breadcrumb/stories @microsoft/cxe-prg
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: split migraton packages to follow our /library /story structure",
"packageName": "@fluentui/react-migration-v0-v9",
"email": "martinhochel@microsoft.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: split migraton packages to follow our /library /story structure",
"packageName": "@fluentui/react-migration-v8-v9",
"email": "martinhochel@microsoft.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../../.babelrc-v9.json",
"extends": "../../../../.babelrc-v9.json",
"plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"]
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$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"
"extends": "@fluentui/scripts-api-extractor/api-extractor.common.v-next.json",
"mainEntryPointFilePath": "<projectRoot>/../../../../../../dist/out-tsc/types/packages/react-components/<unscopedPackageName>/library/src/index.d.ts"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (swcJestConfig.swcrc === undefined) {
*/
module.exports = {
displayName: 'react-migration-v0-v9',
preset: '../../../jest.preset.js',
preset: '../../../../jest.preset.js',
transform: {
'^.+\\.tsx?$': ['@swc/jest', swcJestConfig],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"test": "jest --passWithNoTests",
"type-check": "just-scripts type-check",
"generate-api": "just-scripts generate-api",
"storybook": "start-storybook",
"storybook": "yarn --cwd ../stories storybook",
"start": "yarn storybook"
},
"devDependencies": {
"@fluentui/react-conformance": "*",
"@fluentui/eslint-plugin": "*",
"@fluentui/react-northstar": "*",
"@fluentui/react-conformance": "*",
"@fluentui/react-conformance-griffel": "*",
"@fluentui/scripts-api-extractor": "*",
"@fluentui/scripts-tasks": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "react-migration-v0-v9",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "packages/react-components/react-migration-v0-v9/library/src",
"tags": ["vNext", "react-northstar", "platform:web"],
"implicitDependencies": []
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "../../../../tsconfig.base.all.json",
"compilerOptions": {
"strict": true,
"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"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"noEmit": false,
"lib": ["ES2019", "dom"],
"declaration": true,
"declarationDir": "../../../dist/out-tsc/types",
"outDir": "../../../dist/out-tsc",
"declarationDir": "../../../../dist/out-tsc/types",
"outDir": "../../../../dist/out-tsc",
"inlineSources": true,
"types": ["static-assets", "environment"]
},
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": ["plugin:@fluentui/eslint-plugin/react"],
"root": true,
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"packageDir": [".", "../../../../"]
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const path = require('path');
const { registerTsPaths } = require('@fluentui/scripts-storybook');

const rootMain = require('../../../../.storybook/main');
const rootMain = require('../../../../../.storybook/main');

const tsConfigAllPath = path.join(__dirname, '../../../../tsconfig.base.all.json');
const tsConfigAllPath = path.join(__dirname, '../../../../../tsconfig.base.all.json');

module.exports = /** @type {Omit<import('../../../../.storybook/main'), 'typescript'|'babel'>} */ ({
module.exports = /** @type {Omit<import('../../../../../.storybook/main'), 'typescript'|'babel'>} */ ({
...rootMain,
stories: [...rootMain.stories, '../stories/**/*.stories.mdx', '../stories/**/index.stories.@(ts|tsx)'],
stories: [...rootMain.stories, '../src/**/*.stories.mdx', '../src/**/index.stories.@(ts|tsx)'],
addons: [...rootMain.addons],
webpackFinal: (config, options) => {
const localConfig = /** @type config */ ({ ...rootMain.webpackFinal(config, options) });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as rootPreview from '../../../../.storybook/preview';
import * as rootPreview from '../../../../../.storybook/preview';

/** @type {typeof rootPreview.decorators} */
export const decorators = [...rootPreview.decorators];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"checkJs": true,
"types": ["static-assets", "environment", "storybook__addons"]
},
"include": ["../stories/**/*.stories.ts", "../stories/**/*.stories.tsx", "*.js"]
"include": ["*.js"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# @fluentui/react-migration-v0-v9-stories

Storybook stories for packages/react-components/react-migration-v0-v9

## Usage

To include within storybook specify stories globs:

\`\`\`js
module.exports = {
stories: ['../packages/react-components/react-migration-v0-v9/stories/src/**/*.stories.mdx', '../packages/react-components/react-migration-v0-v9/stories/src/**/index.stories.@(ts|tsx)'],
}
\`\`\`

## API

no public API available
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { preset, task } from '@fluentui/scripts-tasks';

preset();
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@fluentui/react-migration-v0-v9-stories",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "yarn storybook",
"storybook": "start-storybook",
"type-check": "just-scripts type-check",
"lint": "eslint src/",
"format": "just-scripts prettier"
},
"devDependencies": {
"@fluentui/react-migration-v0-v9": "*",
"@fluentui/react-northstar": "*",
"@fluentui/react-components": "*",
"@fluentui/react-icons-northstar": "*",
"@fluentui/react-storybook-addon": "*",
"@fluentui/react-storybook-addon-export-to-sandbox": "*",
"@fluentui/scripts-storybook": "*",
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts-tasks": "*"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "react-migration-v0-v9-stories",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "packages/react-components/react-migration-v0-v9/stories/src",
"tags": ["vNext", "platform:web", "type:stories"],
"implicitDependencies": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.base.all.json",
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"strict": true,
"target": "ES2019",
Expand All @@ -16,9 +16,6 @@
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
},
{
"path": "./.storybook/tsconfig.json"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"lib": ["ES2019", "dom"],
"outDir": "../../../../dist/out-tsc",
"inlineSources": true,
"types": ["static-assets", "environment"]
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../../.babelrc-v9.json",
"extends": "../../../../.babelrc-v9.json",
"plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"]
}
Loading