Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function getCodesandboxBabelOptions() {
const allPackageInfo = getAllPackageInfo();

return Object.values(allPackageInfo).reduce((acc, cur) => {
if (isConvergedPackage(cur.packageJson)) {
if (isConvergedPackage({ packagePathOrJson: cur.packageJson, projectType: 'library' })) {
const prereleaseTags = semver.prerelease(cur.packageJson.version);
const isNonRcPrerelease = prereleaseTags && !prereleaseTags[0].includes('rc');
acc[cur.packageJson.name] = isNonRcPrerelease
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore(priority-flow): re-generate api.md",
"packageName": "@fluentui/priority-overflow",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "docs(react-aria): re-generate api.md",
"packageName": "@fluentui/react-aria",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "docs: re-generate api.md files",
"packageName": "@fluentui/react-avatar",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "docs(react-context-selector): re-generate api.md",
"packageName": "@fluentui/react-context-selector",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "docs: re-generate api.md files",
"packageName": "@fluentui/react-overflow",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "docs: re-generate api.md files",
"packageName": "@fluentui/react-positioning",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "docs(react-shared-contexts): re-generate api.md",
"packageName": "@fluentui/react-shared-contexts",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "docs: re-generate api.md files",
"packageName": "@fluentui/react-tabster",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "docs(react-utilities): re-generate api.md",
"packageName": "@fluentui/react-utilities",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"extends": "./api-extractor.json",
"mainEntryPointFilePath": "<projectFolder>/dist/packages/react-components/<unscopedPackageName>/src/index.d.ts"
"mainEntryPointFilePath": "<projectFolder>/dist/types/packages/react-components/<unscopedPackageName>/src/index.d.ts"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

```ts

// Warning: (ae-internal-missing-underscore) The name "createOverflowManager" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export function createOverflowManager(): OverflowManager;

Expand Down Expand Up @@ -61,8 +59,6 @@ export interface OverflowItemEntry {
priority: number;
}

// Warning: (ae-internal-missing-underscore) The name "OverflowManager" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export interface OverflowManager {
addItem: (items: OverflowItemEntry) => void;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/priority-overflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"lint": "just-scripts lint",
"test": "jest --passWithNoTests",
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/packages/react-components/priority-overflow/src && yarn docs",
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/types/packages/react-components/priority-overflow/src && yarn docs",
"type-check": "tsc -b tsconfig.json"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/react-components/react-aria/etc/react-aria.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export type ARIAButtonSlotProps = ExtractSlotProps<Slot<'button', 'a'>> & {
disabledFocusable?: boolean;
};

// Warning: (ae-internal-missing-underscore) The name "mergeARIADisabled" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function mergeARIADisabled(shorthand: {
'aria-disabled'?: string | boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ export type AvatarState = ComponentState<AvatarSlots> & Required<Pick<AvatarProp
color: NonNullable<Exclude<AvatarProps['color'], 'colorful'>>;
};

// Warning: (ae-internal-missing-underscore) The name "getInitials" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function getInitials(displayName: string | undefined | null, isRtl: boolean, options?: {
allowPhoneInitials?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,36 @@

import * as React_2 from 'react';

// Warning: (ae-internal-missing-underscore) The name "Context" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export type Context<Value> = React_2.Context<Value> & {
Provider: React_2.FC<React_2.ProviderProps<Value>>;
Consumer: never;
};

// Warning: (ae-internal-missing-underscore) The name "ContextSelector" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export type ContextSelector<Value, SelectedValue> = (value: Value) => SelectedValue;

// Warning: (ae-internal-missing-underscore) The name "ContextValue" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export type ContextValue<Value> = {
listeners: ((payload: readonly [ContextVersion, Value]) => void)[];
value: React_2.MutableRefObject<Value>;
version: React_2.MutableRefObject<ContextVersion>;
};

// Warning: (ae-internal-missing-underscore) The name "ContextValues" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export type ContextValues<Value> = ContextValue<Value> & {
listeners: ((payload: readonly [ContextVersion, Record<string, Value>]) => void)[];
};

// Warning: (ae-internal-missing-underscore) The name "ContextVersion" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export type ContextVersion = number;

// Warning: (ae-internal-missing-underscore) The name "createContext" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export const createContext: <Value>(defaultValue: Value) => Context<Value>;

// Warning: (ae-internal-missing-underscore) The name "useContextSelector" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export const useContextSelector: <Value, SelectedValue>(context: Context<Value>, selector: ContextSelector<Value, SelectedValue>) => SelectedValue;

// Warning: (ae-internal-missing-underscore) The name "useHasParentContext" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function useHasParentContext<Value>(context: Context<Value>): boolean;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,9 @@ export function useIsOverflowGroupVisible(id: string): OverflowGroupState;
// @public (undocumented)
export function useIsOverflowItemVisible(id: string): boolean;

// Warning: (ae-internal-missing-underscore) The name "useOverflowContainer" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export const useOverflowContainer: <TElement extends HTMLElement>(update: OnUpdateOverflow, options: Omit<ObserveOptions, 'onUpdateOverflow'>) => UseOverflowContainerReturn<TElement>;

// Warning: (ae-internal-missing-underscore) The name "UseOverflowContainerReturn" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export interface UseOverflowContainerReturn<TElement extends HTMLElement> {
containerRef: React_2.RefObject<TElement>;
Expand All @@ -63,8 +59,6 @@ export interface UseOverflowContainerReturn<TElement extends HTMLElement> {
// @public (undocumented)
export const useOverflowCount: () => number;

// Warning: (ae-internal-missing-underscore) The name "useOverflowItem" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function useOverflowItem<TElement extends HTMLElement>(id: string, priority?: number, groupId?: string): React_2.RefObject<TElement>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,15 @@ export type AutoSize = 'height' | 'height-always' | 'width' | 'width-always' | '
// @public (undocumented)
export type Boundary = HTMLElement | Array<HTMLElement> | 'clippingParents' | 'scrollParent' | 'window';

// Warning: (ae-internal-missing-underscore) The name "createArrowHeightStyles" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function createArrowHeightStyles(arrowHeight: number): {
width: string;
height: string;
};

// Warning: (ae-internal-missing-underscore) The name "createArrowStyles" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function createArrowStyles(options: CreateArrowStylesOptions): GriffelStyle;

// Warning: (ae-internal-missing-underscore) The name "CreateArrowStylesOptions" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export type CreateArrowStylesOptions = {
arrowHeight: number | undefined;
Expand All @@ -42,8 +36,6 @@ export type CreateArrowStylesOptions = {
// @public
export function createVirtualElementFromClick(nativeEvent: MouseEvent): PositioningVirtualElement;

// Warning: (ae-internal-missing-underscore) The name "mergeArrowOffset" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function mergeArrowOffset(userOffset: Offset | undefined | null, arrowHeight: number): Offset;

Expand Down Expand Up @@ -109,17 +101,13 @@ export type PositioningVirtualElement = {
// @public (undocumented)
export function resolvePositioningShorthand(shorthand: PositioningShorthand | undefined | null): Readonly<PositioningProps>;

// Warning: (ae-internal-missing-underscore) The name "usePositioning" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function usePositioning(options?: UsePopperOptions): {
targetRef: React_2.MutableRefObject<any>;
containerRef: React_2.MutableRefObject<any>;
arrowRef: React_2.MutableRefObject<any>;
};

// Warning: (ae-internal-missing-underscore) The name "usePositioningMouseTarget" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export const usePositioningMouseTarget: (initialState?: PositioningVirtualElement | (() => PositioningVirtualElement) | undefined) => readonly [PositioningVirtualElement | undefined, (event: React_2.MouseEvent | MouseEvent | undefined | null) => void];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import * as React_2 from 'react';
import type { Theme } from '@fluentui/react-theme';

// Warning: (ae-internal-missing-underscore) The name "Provider_unstable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export const Provider_unstable: React_2.Provider<ProviderContextValue_unstable>;

Expand All @@ -24,45 +22,31 @@ export type ThemeClassNameContextValue_unstable = string;
// @public (undocumented)
export const ThemeClassNameProvider_unstable: React_2.Provider<string>;

// Warning: (ae-internal-missing-underscore) The name "ThemeContext_unstable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export const ThemeContext_unstable: React_2.Context<ThemeContextValue_unstable>;

// Warning: (ae-internal-missing-underscore) The name "ThemeContextValue_unstable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export type ThemeContextValue_unstable = Theme | Partial<Theme> | undefined;

// Warning: (ae-internal-missing-underscore) The name "ThemeProvider_unstable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export const ThemeProvider_unstable: React_2.Provider<ThemeContextValue_unstable>;

// Warning: (ae-internal-missing-underscore) The name "TooltipVisibilityContextValue_unstable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export type TooltipVisibilityContextValue_unstable = {
visibleTooltip?: {
hide: () => void;
};
};

// Warning: (ae-internal-missing-underscore) The name "TooltipVisibilityProvider_unstable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;

// @public (undocumented)
export function useFluent_unstable(): ProviderContextValue_unstable;

// Warning: (ae-internal-missing-underscore) The name "useThemeClassName_unstable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export function useThemeClassName_unstable(): ThemeClassNameContextValue_unstable;

// Warning: (ae-internal-missing-underscore) The name "useTooltipVisibility_unstable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
export function useTooltipVisibility_unstable(): TooltipVisibilityContextValue_unstable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ export interface UseModalAttributesOptions {
trapFocus?: boolean;
}

// Warning: (ae-internal-missing-underscore) The name "useTabsterAttributes" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export const useTabsterAttributes: (props: Types.TabsterAttributeProps) => Types.TabsterDOMAttribute;

Expand Down
Loading