@fluentui/react-message-bar 0.0.0-nightly-20240930-0408.1 → 0.0.0-nightly-20241002-0405.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,24 +1,25 @@
1
1
  # Change Log - @fluentui/react-message-bar
2
2
 
3
- This log was last generated on Mon, 30 Sep 2024 04:13:07 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 02 Oct 2024 04:10:27 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20240930-0408.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v0.0.0-nightly-20240930-0408.1)
7
+ ## [0.0.0-nightly-20241002-0405.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v0.0.0-nightly-20241002-0405.1)
8
8
 
9
- Mon, 30 Sep 2024 04:13:07 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.2.12..@fluentui/react-message-bar_v0.0.0-nightly-20240930-0408.1)
9
+ Wed, 02 Oct 2024 04:10:27 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.2.12..@fluentui/react-message-bar_v0.0.0-nightly-20241002-0405.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-button to v0.0.0-nightly-20240930-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/5bc438899e52a76d45ff36d63103627dd39ca35a) by beachball)
16
- - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20240930-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/5bc438899e52a76d45ff36d63103627dd39ca35a) by beachball)
17
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20240930-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/5bc438899e52a76d45ff36d63103627dd39ca35a) by beachball)
18
- - Bump @fluentui/react-theme to v0.0.0-nightly-20240930-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/5bc438899e52a76d45ff36d63103627dd39ca35a) by beachball)
19
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20240930-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/5bc438899e52a76d45ff36d63103627dd39ca35a) by beachball)
20
- - Bump @fluentui/react-conformance to v0.0.0-nightly-20240930-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/5bc438899e52a76d45ff36d63103627dd39ca35a) by beachball)
21
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20240930-0408.1 ([commit](https://github.com/microsoft/fluentui/commit/5bc438899e52a76d45ff36d63103627dd39ca35a) by beachball)
15
+ - Bump @fluentui/react-button to v0.0.0-nightly-20241002-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/49080f6cae5e57fdc83fab97473483ff77762648) by beachball)
16
+ - Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20241002-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/49080f6cae5e57fdc83fab97473483ff77762648) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20241002-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/49080f6cae5e57fdc83fab97473483ff77762648) by beachball)
18
+ - Bump @fluentui/react-link to v0.0.0-nightly-20241002-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/49080f6cae5e57fdc83fab97473483ff77762648) by beachball)
19
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20241002-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/49080f6cae5e57fdc83fab97473483ff77762648) by beachball)
20
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20241002-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/49080f6cae5e57fdc83fab97473483ff77762648) by beachball)
21
+ - Bump @fluentui/react-conformance to v0.0.0-nightly-20241002-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/49080f6cae5e57fdc83fab97473483ff77762648) by beachball)
22
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20241002-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/49080f6cae5e57fdc83fab97473483ff77762648) by beachball)
22
23
 
23
24
  ## [9.2.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.2.12)
24
25
 
package/dist/index.d.ts CHANGED
@@ -54,6 +54,12 @@ export declare const MessageBarBody: ForwardRefComponent<MessageBarBodyProps>;
54
54
 
55
55
  export declare const messageBarBodyClassNames: SlotClassNames<MessageBarBodySlots>;
56
56
 
57
+ declare type MessageBarBodyContextValues = {
58
+ link: {
59
+ inline?: boolean;
60
+ };
61
+ };
62
+
57
63
  /**
58
64
  * MessageBarBody Props
59
65
  */
@@ -206,7 +212,7 @@ export declare const renderMessageBarActions_unstable: (state: MessageBarActions
206
212
  /**
207
213
  * Render the final JSX of MessageBarBody
208
214
  */
209
- export declare const renderMessageBarBody_unstable: (state: MessageBarBodyState) => JSX.Element;
215
+ export declare const renderMessageBarBody_unstable: (state: MessageBarBodyState, contextValues: MessageBarBodyContextValues) => JSX.Element;
210
216
 
211
217
  /**
212
218
  * Render the final JSX of MessageBarGroup
@@ -3,12 +3,14 @@ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
3
3
  import { useMessageBarBody_unstable } from './useMessageBarBody';
4
4
  import { renderMessageBarBody_unstable } from './renderMessageBarBody';
5
5
  import { useMessageBarBodyStyles_unstable } from './useMessageBarBodyStyles.styles';
6
+ import { useMessageBarBodyContextValues_unstable } from './useMessageBarBodyContextValues';
6
7
  /**
7
8
  * MessageBarBody component
8
9
  */ export const MessageBarBody = /*#__PURE__*/ React.forwardRef((props, ref)=>{
9
10
  const state = useMessageBarBody_unstable(props, ref);
11
+ const ctx = useMessageBarBodyContextValues_unstable(state);
10
12
  useMessageBarBodyStyles_unstable(state);
11
13
  useCustomStyleHook_unstable('useMessageBarBodyStyles_unstable')(state);
12
- return renderMessageBarBody_unstable(state);
14
+ return renderMessageBarBody_unstable(state, ctx);
13
15
  });
14
16
  MessageBarBody.displayName = 'MessageBarBody';
@@ -1 +1 @@
1
- {"version":3,"sources":["MessageBarBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useMessageBarBody_unstable } from './useMessageBarBody';\nimport { renderMessageBarBody_unstable } from './renderMessageBarBody';\nimport { useMessageBarBodyStyles_unstable } from './useMessageBarBodyStyles.styles';\nimport type { MessageBarBodyProps } from './MessageBarBody.types';\n\n/**\n * MessageBarBody component\n */\nexport const MessageBarBody: ForwardRefComponent<MessageBarBodyProps> = React.forwardRef((props, ref) => {\n const state = useMessageBarBody_unstable(props, ref);\n\n useMessageBarBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useMessageBarBodyStyles_unstable')(state);\n return renderMessageBarBody_unstable(state);\n});\n\nMessageBarBody.displayName = 'MessageBarBody';\n"],"names":["React","useCustomStyleHook_unstable","useMessageBarBody_unstable","renderMessageBarBody_unstable","useMessageBarBodyStyles_unstable","MessageBarBody","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAC9E,SAASC,0BAA0B,QAAQ,sBAAsB;AACjE,SAASC,6BAA6B,QAAQ,yBAAyB;AACvE,SAASC,gCAAgC,QAAQ,mCAAmC;AAGpF;;CAEC,GACD,OAAO,MAAMC,+BAA2DL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQP,2BAA2BK,OAAOC;IAEhDJ,iCAAiCK;IACjCR,4BAA4B,oCAAoCQ;IAChE,OAAON,8BAA8BM;AACvC,GAAG;AAEHJ,eAAeK,WAAW,GAAG"}
1
+ {"version":3,"sources":["MessageBarBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useMessageBarBody_unstable } from './useMessageBarBody';\nimport { renderMessageBarBody_unstable } from './renderMessageBarBody';\nimport { useMessageBarBodyStyles_unstable } from './useMessageBarBodyStyles.styles';\nimport { useMessageBarBodyContextValues_unstable } from './useMessageBarBodyContextValues';\nimport type { MessageBarBodyProps } from './MessageBarBody.types';\n\n/**\n * MessageBarBody component\n */\nexport const MessageBarBody: ForwardRefComponent<MessageBarBodyProps> = React.forwardRef((props, ref) => {\n const state = useMessageBarBody_unstable(props, ref);\n const ctx = useMessageBarBodyContextValues_unstable(state);\n\n useMessageBarBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useMessageBarBodyStyles_unstable')(state);\n return renderMessageBarBody_unstable(state, ctx);\n});\n\nMessageBarBody.displayName = 'MessageBarBody';\n"],"names":["React","useCustomStyleHook_unstable","useMessageBarBody_unstable","renderMessageBarBody_unstable","useMessageBarBodyStyles_unstable","useMessageBarBodyContextValues_unstable","MessageBarBody","forwardRef","props","ref","state","ctx","displayName"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAC9E,SAASC,0BAA0B,QAAQ,sBAAsB;AACjE,SAASC,6BAA6B,QAAQ,yBAAyB;AACvE,SAASC,gCAAgC,QAAQ,mCAAmC;AACpF,SAASC,uCAAuC,QAAQ,mCAAmC;AAG3F;;CAEC,GACD,OAAO,MAAMC,+BAA2DN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQR,2BAA2BM,OAAOC;IAChD,MAAME,MAAMN,wCAAwCK;IAEpDN,iCAAiCM;IACjCT,4BAA4B,oCAAoCS;IAChE,OAAOP,8BAA8BO,OAAOC;AAC9C,GAAG;AAEHL,eAAeM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["MessageBarBody.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MessageBarBodySlots = {\n root: Slot<'div'>;\n};\n\n/**\n * MessageBarBody Props\n */\nexport type MessageBarBodyProps = ComponentProps<MessageBarBodySlots>;\n\n/**\n * State used in rendering MessageBarBody\n */\nexport type MessageBarBodyState = ComponentState<MessageBarBodySlots>;\n"],"names":[],"rangeMappings":";;","mappings":"AAWA;;CAEC,GACD,WAAsE"}
1
+ {"version":3,"sources":["MessageBarBody.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MessageBarBodyContextValues = {\n link: {\n inline?: boolean;\n };\n};\n\nexport type MessageBarBodySlots = {\n root: Slot<'div'>;\n};\n\n/**\n * MessageBarBody Props\n */\nexport type MessageBarBodyProps = ComponentProps<MessageBarBodySlots>;\n\n/**\n * State used in rendering MessageBarBody\n */\nexport type MessageBarBodyState = ComponentState<MessageBarBodySlots>;\n"],"names":[],"rangeMappings":";;","mappings":"AAiBA;;CAEC,GACD,WAAsE"}
@@ -1,8 +1,12 @@
1
1
  import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-utilities';
3
+ import { LinkContextProvider } from '@fluentui/react-link';
3
4
  /**
4
5
  * Render the final JSX of MessageBarBody
5
- */ export const renderMessageBarBody_unstable = (state)=>{
6
+ */ export const renderMessageBarBody_unstable = (state, contextValues)=>{
6
7
  assertSlots(state);
7
- return /*#__PURE__*/ _jsx(state.root, {});
8
+ return /*#__PURE__*/ _jsx(LinkContextProvider, {
9
+ value: contextValues.link,
10
+ children: /*#__PURE__*/ _jsx(state.root, {})
11
+ });
8
12
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderMessageBarBody.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { MessageBarBodyState, MessageBarBodySlots } from './MessageBarBody.types';\n\n/**\n * Render the final JSX of MessageBarBody\n */\nexport const renderMessageBarBody_unstable = (state: MessageBarBodyState) => {\n assertSlots<MessageBarBodySlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderMessageBarBody_unstable","state","root"],"rangeMappings":";;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD;;CAEC,GACD,OAAO,MAAMC,gCAAgC,CAACC;IAC5CF,YAAiCE;IAEjC,qBAAO,KAACA,MAAMC,IAAI;AACpB,EAAE"}
1
+ {"version":3,"sources":["renderMessageBarBody.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { MessageBarBodyState, MessageBarBodySlots, MessageBarBodyContextValues } from './MessageBarBody.types';\nimport { LinkContextProvider } from '@fluentui/react-link';\n\n/**\n * Render the final JSX of MessageBarBody\n */\nexport const renderMessageBarBody_unstable = (\n state: MessageBarBodyState,\n contextValues: MessageBarBodyContextValues,\n) => {\n assertSlots<MessageBarBodySlots>(state);\n\n return (\n <LinkContextProvider value={contextValues.link}>\n <state.root />\n </LinkContextProvider>\n );\n};\n"],"names":["assertSlots","LinkContextProvider","renderMessageBarBody_unstable","state","contextValues","value","link","root"],"rangeMappings":";;;;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAExD,SAASC,mBAAmB,QAAQ,uBAAuB;AAE3D;;CAEC,GACD,OAAO,MAAMC,gCAAgC,CAC3CC,OACAC;IAEAJ,YAAiCG;IAEjC,qBACE,KAACF;QAAoBI,OAAOD,cAAcE,IAAI;kBAC5C,cAAA,KAACH,MAAMI,IAAI;;AAGjB,EAAE"}
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export function useMessageBarBodyContextValues_unstable(state) {
3
+ const link = React.useMemo(()=>({
4
+ inline: true
5
+ }), []);
6
+ return {
7
+ link
8
+ };
9
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useMessageBarBodyContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport type { MessageBarBodyState, MessageBarBodyContextValues } from './MessageBarBody.types';\n\nexport function useMessageBarBodyContextValues_unstable(state: MessageBarBodyState): MessageBarBodyContextValues {\n const link = React.useMemo(\n () => ({\n inline: true,\n }),\n [],\n );\n\n return {\n link,\n };\n}\n"],"names":["React","useMessageBarBodyContextValues_unstable","state","link","useMemo","inline"],"rangeMappings":";;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAG/B,OAAO,SAASC,wCAAwCC,KAA0B;IAChF,MAAMC,OAAOH,MAAMI,OAAO,CACxB,IAAO,CAAA;YACLC,QAAQ;QACV,CAAA,GACA,EAAE;IAGJ,OAAO;QACLF;IACF;AACF"}
@@ -14,10 +14,12 @@ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
14
14
  const _useMessageBarBody = require("./useMessageBarBody");
15
15
  const _renderMessageBarBody = require("./renderMessageBarBody");
16
16
  const _useMessageBarBodyStylesstyles = require("./useMessageBarBodyStyles.styles");
17
+ const _useMessageBarBodyContextValues = require("./useMessageBarBodyContextValues");
17
18
  const MessageBarBody = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
18
19
  const state = (0, _useMessageBarBody.useMessageBarBody_unstable)(props, ref);
20
+ const ctx = (0, _useMessageBarBodyContextValues.useMessageBarBodyContextValues_unstable)(state);
19
21
  (0, _useMessageBarBodyStylesstyles.useMessageBarBodyStyles_unstable)(state);
20
22
  (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useMessageBarBodyStyles_unstable')(state);
21
- return (0, _renderMessageBarBody.renderMessageBarBody_unstable)(state);
23
+ return (0, _renderMessageBarBody.renderMessageBarBody_unstable)(state, ctx);
22
24
  });
23
25
  MessageBarBody.displayName = 'MessageBarBody';
@@ -1 +1 @@
1
- {"version":3,"sources":["MessageBarBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useMessageBarBody_unstable } from './useMessageBarBody';\nimport { renderMessageBarBody_unstable } from './renderMessageBarBody';\nimport { useMessageBarBodyStyles_unstable } from './useMessageBarBodyStyles.styles';\nimport type { MessageBarBodyProps } from './MessageBarBody.types';\n\n/**\n * MessageBarBody component\n */\nexport const MessageBarBody: ForwardRefComponent<MessageBarBodyProps> = React.forwardRef((props, ref) => {\n const state = useMessageBarBody_unstable(props, ref);\n\n useMessageBarBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useMessageBarBodyStyles_unstable')(state);\n return renderMessageBarBody_unstable(state);\n});\n\nMessageBarBody.displayName = 'MessageBarBody';\n"],"names":["MessageBarBody","React","forwardRef","props","ref","state","useMessageBarBody_unstable","useMessageBarBodyStyles_unstable","useCustomStyleHook_unstable","renderMessageBarBody_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;qCAEqB;mCACD;sCACG;+CACG;AAM1C,MAAMA,iBAAAA,WAAAA,GAA2DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQC,IAAAA,6CAAAA,EAA2BH,OAAOC;IAEhDG,IAAAA,+DAAAA,EAAiCF;IACjCG,IAAAA,gDAAAA,EAA4B,oCAAoCH;IAChE,OAAOI,IAAAA,mDAAAA,EAA8BJ;AACvC;AAEAL,eAAeU,WAAW,GAAG"}
1
+ {"version":3,"sources":["MessageBarBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useMessageBarBody_unstable } from './useMessageBarBody';\nimport { renderMessageBarBody_unstable } from './renderMessageBarBody';\nimport { useMessageBarBodyStyles_unstable } from './useMessageBarBodyStyles.styles';\nimport { useMessageBarBodyContextValues_unstable } from './useMessageBarBodyContextValues';\nimport type { MessageBarBodyProps } from './MessageBarBody.types';\n\n/**\n * MessageBarBody component\n */\nexport const MessageBarBody: ForwardRefComponent<MessageBarBodyProps> = React.forwardRef((props, ref) => {\n const state = useMessageBarBody_unstable(props, ref);\n const ctx = useMessageBarBodyContextValues_unstable(state);\n\n useMessageBarBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useMessageBarBodyStyles_unstable')(state);\n return renderMessageBarBody_unstable(state, ctx);\n});\n\nMessageBarBody.displayName = 'MessageBarBody';\n"],"names":["MessageBarBody","React","forwardRef","props","ref","state","useMessageBarBody_unstable","ctx","useMessageBarBodyContextValues_unstable","useMessageBarBodyStyles_unstable","useCustomStyleHook_unstable","renderMessageBarBody_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;qCAEqB;mCACD;sCACG;+CACG;gDACO;AAMjD,MAAMA,iBAAAA,WAAAA,GAA2DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQC,IAAAA,6CAAAA,EAA2BH,OAAOC;IAChD,MAAMG,MAAMC,IAAAA,uEAAAA,EAAwCH;IAEpDI,IAAAA,+DAAAA,EAAiCJ;IACjCK,IAAAA,gDAAAA,EAA4B,oCAAoCL;IAChE,OAAOM,IAAAA,mDAAAA,EAA8BN,OAAOE;AAC9C;AAEAP,eAAeY,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["MessageBarBody.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MessageBarBodySlots = {\n root: Slot<'div'>;\n};\n\n/**\n * MessageBarBody Props\n */\nexport type MessageBarBodyProps = ComponentProps<MessageBarBodySlots>;\n\n/**\n * State used in rendering MessageBarBody\n */\nexport type MessageBarBodyState = ComponentState<MessageBarBodySlots>;\n"],"names":[],"rangeMappings":";;","mappings":"AAWA;;CAEC"}
1
+ {"version":3,"sources":["MessageBarBody.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MessageBarBodyContextValues = {\n link: {\n inline?: boolean;\n };\n};\n\nexport type MessageBarBodySlots = {\n root: Slot<'div'>;\n};\n\n/**\n * MessageBarBody Props\n */\nexport type MessageBarBodyProps = ComponentProps<MessageBarBodySlots>;\n\n/**\n * State used in rendering MessageBarBody\n */\nexport type MessageBarBodyState = ComponentState<MessageBarBodySlots>;\n"],"names":[],"rangeMappings":";;","mappings":"AAiBA;;CAEC"}
@@ -10,7 +10,11 @@ Object.defineProperty(exports, "renderMessageBarBody_unstable", {
10
10
  });
11
11
  const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
12
  const _reactutilities = require("@fluentui/react-utilities");
13
- const renderMessageBarBody_unstable = (state)=>{
13
+ const _reactlink = require("@fluentui/react-link");
14
+ const renderMessageBarBody_unstable = (state, contextValues)=>{
14
15
  (0, _reactutilities.assertSlots)(state);
15
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
16
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactlink.LinkContextProvider, {
17
+ value: contextValues.link,
18
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {})
19
+ });
16
20
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderMessageBarBody.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { MessageBarBodyState, MessageBarBodySlots } from './MessageBarBody.types';\n\n/**\n * Render the final JSX of MessageBarBody\n */\nexport const renderMessageBarBody_unstable = (state: MessageBarBodyState) => {\n assertSlots<MessageBarBodySlots>(state);\n\n return <state.root />;\n};\n"],"names":["renderMessageBarBody_unstable","state","assertSlots","_jsx","root"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;4BARb;gCAE4B;AAMrB,MAAMA,gCAAgC,CAACC;IAC5CC,IAAAA,2BAAAA,EAAiCD;IAEjC,OAAA,WAAA,GAAOE,IAAAA,eAAA,EAACF,MAAMG,IAAI,EAAA,CAAA;AACpB"}
1
+ {"version":3,"sources":["renderMessageBarBody.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { MessageBarBodyState, MessageBarBodySlots, MessageBarBodyContextValues } from './MessageBarBody.types';\nimport { LinkContextProvider } from '@fluentui/react-link';\n\n/**\n * Render the final JSX of MessageBarBody\n */\nexport const renderMessageBarBody_unstable = (\n state: MessageBarBodyState,\n contextValues: MessageBarBodyContextValues,\n) => {\n assertSlots<MessageBarBodySlots>(state);\n\n return (\n <LinkContextProvider value={contextValues.link}>\n <state.root />\n </LinkContextProvider>\n );\n};\n"],"names":["renderMessageBarBody_unstable","state","contextValues","assertSlots","_jsx","LinkContextProvider","value","link","root"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUaA;;;eAAAA;;;4BATb;gCAE4B;2BAEQ;AAK7B,MAAMA,gCAAgC,CAC3CC,OACAC;IAEAC,IAAAA,2BAAAA,EAAiCF;IAEjC,OAAA,WAAA,GACEG,IAAAA,eAAA,EAACC,8BAAAA,EAAAA;QAAoBC,OAAOJ,cAAcK,IAAI;kBAC5C,WAAA,GAAAH,IAAAA,eAAA,EAACH,MAAMO,IAAI,EAAA,CAAA;;AAGjB"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useMessageBarBodyContextValues_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useMessageBarBodyContextValues_unstable;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ function useMessageBarBodyContextValues_unstable(state) {
14
+ const link = _react.useMemo(()=>({
15
+ inline: true
16
+ }), []);
17
+ return {
18
+ link
19
+ };
20
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useMessageBarBodyContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport type { MessageBarBodyState, MessageBarBodyContextValues } from './MessageBarBody.types';\n\nexport function useMessageBarBodyContextValues_unstable(state: MessageBarBodyState): MessageBarBodyContextValues {\n const link = React.useMemo(\n () => ({\n inline: true,\n }),\n [],\n );\n\n return {\n link,\n };\n}\n"],"names":["useMessageBarBodyContextValues_unstable","state","link","React","useMemo","inline"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAGgBA;;;eAAAA;;;;iEAHO;AAGhB,SAASA,wCAAwCC,KAA0B;IAChF,MAAMC,OAAOC,OAAMC,OAAO,CACxB,IAAO,CAAA;YACLC,QAAQ;QACV,CAAA,GACA,EAAE;IAGJ,OAAO;QACLH;IACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-message-bar",
3
- "version": "0.0.0-nightly-20240930-0408.1",
3
+ "version": "0.0.0-nightly-20241002-0405.1",
4
4
  "description": "Fluent UI MessageBar component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -24,18 +24,19 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@fluentui/eslint-plugin": "*",
27
- "@fluentui/react-conformance": "0.0.0-nightly-20240930-0408.1",
28
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20240930-0408.1",
27
+ "@fluentui/react-conformance": "0.0.0-nightly-20241002-0405.1",
28
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20241002-0405.1",
29
29
  "@fluentui/scripts-api-extractor": "*",
30
30
  "@fluentui/scripts-tasks": "*"
31
31
  },
32
32
  "dependencies": {
33
- "@fluentui/react-button": "0.0.0-nightly-20240930-0408.1",
33
+ "@fluentui/react-button": "0.0.0-nightly-20241002-0405.1",
34
34
  "@fluentui/react-icons": "^2.0.245",
35
- "@fluentui/react-jsx-runtime": "0.0.0-nightly-20240930-0408.1",
36
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20240930-0408.1",
37
- "@fluentui/react-theme": "0.0.0-nightly-20240930-0408.1",
38
- "@fluentui/react-utilities": "0.0.0-nightly-20240930-0408.1",
35
+ "@fluentui/react-jsx-runtime": "0.0.0-nightly-20241002-0405.1",
36
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20241002-0405.1",
37
+ "@fluentui/react-link": "0.0.0-nightly-20241002-0405.1",
38
+ "@fluentui/react-theme": "0.0.0-nightly-20241002-0405.1",
39
+ "@fluentui/react-utilities": "0.0.0-nightly-20241002-0405.1",
39
40
  "@griffel/react": "^1.5.22",
40
41
  "@swc/helpers": "^0.5.1",
41
42
  "react-transition-group": "^4.4.1"