diff --git a/api-extractor.json b/api-extractor.json index a9e9797e0a..2bee2032d6 100644 --- a/api-extractor.json +++ b/api-extractor.json @@ -1,26 +1,3 @@ { - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", - "apiReport": { - "enabled": true - }, - "docModel": { - "enabled": true, - "apiJsonFilePath": "/dist/.api.json" - }, - "dtsRollup": { - "enabled": true - }, - "messages": { - "extractorMessageReporting": { - "ae-missing-release-tag": { - "logLevel": "none" - } - }, - "tsdocMessageReporting": { - "tsdoc-undefined-tag": { - "logLevel": "none" - } - } - } -} \ No newline at end of file + "extends": "@uifabricshared/build-native/api-extractor.json" +} diff --git a/apps/demo/api-extractor.json b/apps/demo/api-extractor.json index 7b57cb6e7b..2bee2032d6 100644 --- a/apps/demo/api-extractor.json +++ b/apps/demo/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../api-extractor.json" -} \ No newline at end of file + "extends": "@uifabricshared/build-native/api-extractor.json" +} diff --git a/apps/demo/tsconfig.json b/apps/demo/tsconfig.json index 1b551f4e9e..fd8ecb574e 100644 --- a/apps/demo/tsconfig.json +++ b/apps/demo/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/apps/playground/tsconfig.json b/apps/playground/tsconfig.json index 23250e9d7f..d48c344504 100644 --- a/apps/playground/tsconfig.json +++ b/apps/playground/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib", "allowSyntheticDefaultImports": true, diff --git a/packages/components/Button/api-extractor.json b/packages/components/Button/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/Button/api-extractor.json +++ b/packages/components/Button/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/Button/tsconfig.json b/packages/components/Button/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/Button/tsconfig.json +++ b/packages/components/Button/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/Callout/api-extractor.json b/packages/components/Callout/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/Callout/api-extractor.json +++ b/packages/components/Callout/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/Callout/tsconfig.json b/packages/components/Callout/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/Callout/tsconfig.json +++ b/packages/components/Callout/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/FocusTrapZone/api-extractor.json b/packages/components/FocusTrapZone/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/FocusTrapZone/api-extractor.json +++ b/packages/components/FocusTrapZone/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/FocusTrapZone/tsconfig.json b/packages/components/FocusTrapZone/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/FocusTrapZone/tsconfig.json +++ b/packages/components/FocusTrapZone/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/Link/api-extractor.json b/packages/components/Link/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/Link/api-extractor.json +++ b/packages/components/Link/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/Link/tsconfig.json b/packages/components/Link/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/Link/tsconfig.json +++ b/packages/components/Link/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/Persona/api-extractor.json b/packages/components/Persona/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/Persona/api-extractor.json +++ b/packages/components/Persona/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/Persona/tsconfig.json b/packages/components/Persona/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/Persona/tsconfig.json +++ b/packages/components/Persona/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/PersonaCoin/api-extractor.json b/packages/components/PersonaCoin/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/PersonaCoin/api-extractor.json +++ b/packages/components/PersonaCoin/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/PersonaCoin/tsconfig.json b/packages/components/PersonaCoin/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/PersonaCoin/tsconfig.json +++ b/packages/components/PersonaCoin/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/Pressable/api-extractor.json b/packages/components/Pressable/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/Pressable/api-extractor.json +++ b/packages/components/Pressable/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/Pressable/tsconfig.json b/packages/components/Pressable/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/Pressable/tsconfig.json +++ b/packages/components/Pressable/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/RadioGroup/api-extractor.json b/packages/components/RadioGroup/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/RadioGroup/api-extractor.json +++ b/packages/components/RadioGroup/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/RadioGroup/tsconfig.json b/packages/components/RadioGroup/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/RadioGroup/tsconfig.json +++ b/packages/components/RadioGroup/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/Separator/api-extractor.json b/packages/components/Separator/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/Separator/api-extractor.json +++ b/packages/components/Separator/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/Separator/tsconfig.json b/packages/components/Separator/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/Separator/tsconfig.json +++ b/packages/components/Separator/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/Stack/api-extractor.json b/packages/components/Stack/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/Stack/api-extractor.json +++ b/packages/components/Stack/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/Stack/tsconfig.json b/packages/components/Stack/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/Stack/tsconfig.json +++ b/packages/components/Stack/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/components/text/api-extractor.json b/packages/components/text/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/components/text/api-extractor.json +++ b/packages/components/text/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/components/text/tsconfig.json b/packages/components/text/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/components/text/tsconfig.json +++ b/packages/components/text/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/experiments/experimental-web-controls/api-extractor.json b/packages/experiments/experimental-web-controls/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/experiments/experimental-web-controls/api-extractor.json +++ b/packages/experiments/experimental-web-controls/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/experiments/experimental-web-controls/tsconfig.json b/packages/experiments/experimental-web-controls/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/experiments/experimental-web-controls/tsconfig.json +++ b/packages/experiments/experimental-web-controls/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/foundation-composable/api-extractor.json b/packages/framework/foundation-composable/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/foundation-composable/api-extractor.json +++ b/packages/framework/foundation-composable/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/foundation-composable/src/Composable.types.ts b/packages/framework/foundation-composable/src/Composable.types.ts index cbd6df1dd5..84068d3a0f 100644 --- a/packages/framework/foundation-composable/src/Composable.types.ts +++ b/packages/framework/foundation-composable/src/Composable.types.ts @@ -17,7 +17,7 @@ export interface IComposableType< props: TProps; /** - * slotProps, an object containing at least { root: IRootPropType }. The type of this object will dictate + * slotProps, an object containing at least \{ root: IRootPropType \}. The type of this object will dictate * the slots on the component. */ slotProps: TSlotProps; diff --git a/packages/framework/foundation-composable/tsconfig.json b/packages/framework/foundation-composable/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/foundation-composable/tsconfig.json +++ b/packages/framework/foundation-composable/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/foundation-compose/api-extractor.json b/packages/framework/foundation-compose/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/foundation-compose/api-extractor.json +++ b/packages/framework/foundation-compose/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/foundation-compose/tsconfig.json b/packages/framework/foundation-compose/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/foundation-compose/tsconfig.json +++ b/packages/framework/foundation-compose/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/foundation-settings/api-extractor.json b/packages/framework/foundation-settings/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/foundation-settings/api-extractor.json +++ b/packages/framework/foundation-settings/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/foundation-settings/tsconfig.json b/packages/framework/foundation-settings/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/foundation-settings/tsconfig.json +++ b/packages/framework/foundation-settings/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/foundation-tokens/api-extractor.json b/packages/framework/foundation-tokens/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/foundation-tokens/api-extractor.json +++ b/packages/framework/foundation-tokens/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/foundation-tokens/tsconfig.json b/packages/framework/foundation-tokens/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/foundation-tokens/tsconfig.json +++ b/packages/framework/foundation-tokens/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/immutable-merge/api-extractor.json b/packages/framework/immutable-merge/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/immutable-merge/api-extractor.json +++ b/packages/framework/immutable-merge/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/immutable-merge/tsconfig.json b/packages/framework/immutable-merge/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/immutable-merge/tsconfig.json +++ b/packages/framework/immutable-merge/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/theme-registry/api-extractor.json b/packages/framework/theme-registry/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/theme-registry/api-extractor.json +++ b/packages/framework/theme-registry/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/theme-registry/tsconfig.json b/packages/framework/theme-registry/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/theme-registry/tsconfig.json +++ b/packages/framework/theme-registry/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/themed-settings/api-extractor.json b/packages/framework/themed-settings/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/themed-settings/api-extractor.json +++ b/packages/framework/themed-settings/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/themed-settings/tsconfig.json b/packages/framework/themed-settings/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/themed-settings/tsconfig.json +++ b/packages/framework/themed-settings/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/themed-stylesheet/tsconfig.json b/packages/framework/themed-stylesheet/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/themed-stylesheet/tsconfig.json +++ b/packages/framework/themed-stylesheet/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/theming-ramp/api-extractor.json b/packages/framework/theming-ramp/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/theming-ramp/api-extractor.json +++ b/packages/framework/theming-ramp/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/theming-ramp/tsconfig.json b/packages/framework/theming-ramp/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/framework/theming-ramp/tsconfig.json +++ b/packages/framework/theming-ramp/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/framework/theming-react-native/api-extractor.json b/packages/framework/theming-react-native/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/framework/theming-react-native/api-extractor.json +++ b/packages/framework/theming-react-native/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/framework/theming-react-native/tsconfig.json b/packages/framework/theming-react-native/tsconfig.json index bcb050c9c1..142ec22815 100644 --- a/packages/framework/theming-react-native/tsconfig.json +++ b/packages/framework/theming-react-native/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/utils/adapters/api-extractor.json b/packages/utils/adapters/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/utils/adapters/api-extractor.json +++ b/packages/utils/adapters/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/utils/adapters/tsconfig.json b/packages/utils/adapters/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/utils/adapters/tsconfig.json +++ b/packages/utils/adapters/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/utils/interactive-hooks/api-extractor.json b/packages/utils/interactive-hooks/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/utils/interactive-hooks/api-extractor.json +++ b/packages/utils/interactive-hooks/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/utils/interactive-hooks/etc/interactive-hooks.api.md b/packages/utils/interactive-hooks/etc/interactive-hooks.api.md new file mode 100644 index 0000000000..5172a26799 --- /dev/null +++ b/packages/utils/interactive-hooks/etc/interactive-hooks.api.md @@ -0,0 +1,75 @@ +## API Report File for "@fluentui-react-native/interactive-hooks" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { IViewProps } from '@fluentui-react-native/adapters'; +import { IViewWin32 } from '@office-iss/react-native-win32'; +import * as React from 'react'; + +// @public (undocumented) +export type IFocusable = IViewWin32; + +// @public (undocumented) +export type IFocusState = { + focused?: boolean; +}; + +// @public (undocumented) +export type IHoverState = { + hovered?: boolean; +}; + +// @public (undocumented) +export type IPressableHooks = { + props: IWithPressableOptions; + state: IPressableState; +}; + +// @public (undocumented) +export type IPressableOptions = { + onStateChange?: (state: IPressableState) => void; + disabled?: boolean; + onPress?: () => void; +}; + +// @public (undocumented) +export type IPressableState = IPressState & IFocusState & IHoverState; + +// @public (undocumented) +export type IPressState = { + pressed?: boolean; +}; + +// @public (undocumented) +export type IWithPressableOptions = T & IPressableOptions; + +// @public (undocumented) +export type onChangeCallback = (key: string) => void; + +// @public (undocumented) +export function useAsPressable(props: IWithPressableOptions): IPressableHooks; + +// @public (undocumented) +export function useAsRadioGroupSelection(defaultSelectedKey: string | null, userCallback?: onChangeCallback): { + onChange: (key: string) => void; + selectedKey: string; +}; + +// @public +export function useFocusState(): [TViewProps, IFocusState]; + +// @public +export function useHoverState(): [TViewProps, IHoverState]; + +// @public +export function usePressState(_props: IWithPressableOptions): [TViewProps, IPressState]; + +// @public +export function useViewCommandFocus(forwardRef: React.Ref | undefined, initialValue?: React.Component): React.RefObject; + + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/utils/interactive-hooks/tsconfig.json b/packages/utils/interactive-hooks/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/utils/interactive-hooks/tsconfig.json +++ b/packages/utils/interactive-hooks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/packages/utils/tokens/api-extractor.json b/packages/utils/tokens/api-extractor.json index cd7e880828..2bee2032d6 100644 --- a/packages/utils/tokens/api-extractor.json +++ b/packages/utils/tokens/api-extractor.json @@ -1,3 +1,3 @@ { - "extends": "../../../api-extractor.json" + "extends": "@uifabricshared/build-native/api-extractor.json" } diff --git a/packages/utils/tokens/tsconfig.json b/packages/utils/tokens/tsconfig.json index 62676b00a1..fd8ecb574e 100644 --- a/packages/utils/tokens/tsconfig.json +++ b/packages/utils/tokens/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.json", + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { "outDir": "lib" }, diff --git a/scripts/api-extractor.json b/scripts/api-extractor.json new file mode 100644 index 0000000000..138cb3e538 --- /dev/null +++ b/scripts/api-extractor.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "/lib/index.d.ts", + "apiReport": { + "enabled": true + }, + "docModel": { + "enabled": true, + "apiJsonFilePath": "/dist/.api.json" + }, + "dtsRollup": { + "enabled": true + }, + "messages": { + "extractorMessageReporting": { + "ae-missing-release-tag": { + "logLevel": "none" + } + }, + "tsdocMessageReporting": { + "tsdoc-undefined-tag": { + "logLevel": "none" + } + } + } +} diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json new file mode 100644 index 0000000000..1b74b97979 --- /dev/null +++ b/scripts/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "target": "es2015", + "module": "commonjs", + "moduleResolution": "node", + "declaration": true, + "declarationMap": true, + "strict": true, + "strictBindCallApply": false, + "forceConsistentCasingInFileNames": true, + "strictNullChecks": false, + "noImplicitAny": false, + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "esModuleInterop": true, + "skipLibCheck": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "jsx": "react" + } +} diff --git a/tsconfig.json b/tsconfig.json index 1b74b97979..fd8ecb574e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,23 +1,7 @@ { + "extends": "@uifabricshared/build-native/tsconfig.json", "compilerOptions": { - "target": "es2015", - "module": "commonjs", - "moduleResolution": "node", - "declaration": true, - "declarationMap": true, - "strict": true, - "strictBindCallApply": false, - "forceConsistentCasingInFileNames": true, - "strictNullChecks": false, - "noImplicitAny": false, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "esModuleInterop": true, - "skipLibCheck": true, - "skipDefaultLibCheck": true, - "sourceMap": true, - "jsx": "react" - } + "outDir": "lib" + }, + "include": ["src"] }