Skip to content

Commit

Permalink
temporarily deploy utilities (microsoft#29518)
Browse files Browse the repository at this point in the history
* temporarily deploy utilities

* add useShadowConfig export

* update API snapshot
  • Loading branch information
spmonahan committed Oct 26, 2023
1 parent fd9e962 commit a18f5fb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"buildCommand": "build:codesandbox",
"packages": ["packages/react", "packages/merge-styles", "packages/react-components/react-components"],
"packages": [
"packages/react",
"packages/merge-styles",
"packages/react-components/react-components",
"packages/utilities"
],
"sandboxes": ["x5u3t", "spnyu"],
"node": "16"
}
5 changes: 4 additions & 1 deletion packages/utilities/etc/utilities.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { portalContainsElement } from '@fluentui/dom-utilities';
import * as React_2 from 'react';
import { setPortalAttribute } from '@fluentui/dom-utilities';
import { setVirtualParent } from '@fluentui/dom-utilities';
import type { ShadowConfig } from '@fluentui/merge-styles';
import { ShadowConfig } from '@fluentui/merge-styles';

// @public
export function addDirectionalKeyCode(which: number): void;
Expand Down Expand Up @@ -1298,6 +1298,9 @@ export const useMergeStylesRootStylesheets: () => Map<string, CSSStyleSheet>;
// @public
export const useMergeStylesShadowRootContext: () => MergeStylesShadowRootContextValue | undefined;

// @public
export const useShadowConfig: (stylesheetKey: string, win?: Window) => ShadowConfig;

// @public
export function values<T>(obj: any): T[];

Expand Down
1 change: 1 addition & 0 deletions packages/utilities/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export {
useAdoptedStylesheet,
useHasMergeStylesShadowRootContext,
useMergeStylesShadowRootContext,
useShadowConfig,
} from './shadowDom/MergeStylesShadowRootContext';

export { MergeStylesRootProvider, useMergeStylesRootStylesheets } from './shadowDom/MergeStylesRootContext';

0 comments on commit a18f5fb

Please sign in to comment.