@fluentui-copilot/react-preview 0.0.0-nightly-20250319-0404-611607b9.1 → 0.0.0-nightly-20250320-0405-4a9638ac.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.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui-copilot/react-preview",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 19 Mar 2025 04:13:46 GMT",
6
- "tag": "@fluentui-copilot/react-preview_v0.0.0-nightly-20250319-0404-611607b9.1",
7
- "version": "0.0.0-nightly-20250319-0404-611607b9.1",
5
+ "date": "Thu, 20 Mar 2025 04:14:23 GMT",
6
+ "tag": "@fluentui-copilot/react-preview_v0.0.0-nightly-20250320-0405-4a9638ac.1",
7
+ "version": "0.0.0-nightly-20250320-0405-4a9638ac.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
package/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Change Log - @fluentui-copilot/react-preview
2
2
 
3
- This log was last generated on Wed, 19 Mar 2025 04:13:46 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 20 Mar 2025 04:14:23 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20250319-0404-611607b9.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-preview_v0.0.0-nightly-20250319-0404-611607b9.1)
7
+ ## [0.0.0-nightly-20250320-0405-4a9638ac.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-preview_v0.0.0-nightly-20250320-0405-4a9638ac.1)
8
8
 
9
- Wed, 19 Mar 2025 04:13:46 GMT
10
- [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-preview_v0.5.8..@fluentui-copilot/react-preview_v0.0.0-nightly-20250319-0404-611607b9.1)
9
+ Thu, 20 Mar 2025 04:14:23 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-preview_v0.5.8..@fluentui-copilot/react-preview_v0.0.0-nightly-20250320-0405-4a9638ac.1)
11
11
 
12
12
  ### Changes
13
13
 
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import type { ComponentProps } from '@fluentui/react-components';
4
4
  import type { ComponentState } from '@fluentui/react-components';
5
5
  import type { Context } from '@fluentui/react-context-selector';
6
6
  import type { ContextSelector } from '@fluentui/react-context-selector';
7
+ import type { DesignVersion } from '@fluentui-copilot/react-provider';
7
8
  import { FC } from 'react';
8
9
  import type { ForwardRefComponent } from '@fluentui/react-components';
9
10
  import { JSXElementConstructor } from 'react';
@@ -149,14 +150,14 @@ export declare const previewSurfaceClassNames: SlotClassNames<PreviewSurfaceSlot
149
150
  /**
150
151
  * PreviewSurface Props
151
152
  */
152
- export declare type PreviewSurfaceProps = ComponentProps<PreviewSurfaceSlots> & PopoverSurfaceProps & {};
153
+ export declare type PreviewSurfaceProps = ComponentProps<PreviewSurfaceSlots> & PopoverSurfaceProps & DesignVersion & {};
153
154
 
154
155
  export declare type PreviewSurfaceSlots = PopoverSurfaceSlots & {};
155
156
 
156
157
  /**
157
158
  * State used in rendering PreviewSurface
158
159
  */
159
- export declare type PreviewSurfaceState = ComponentState<PreviewSurfaceSlots> & PopoverSurfaceState & {};
160
+ export declare type PreviewSurfaceState = ComponentState<PreviewSurfaceSlots> & PopoverSurfaceState & Pick<Required<PreviewSurfaceProps>, 'designVersion'> & {};
160
161
 
161
162
  export declare const PreviewTrigger: React_2.FC<PreviewTriggerProps>;
162
163
 
@@ -1 +1 @@
1
- {"version":3,"sources":["PreviewSurface.types.ts"],"sourcesContent":["import type {\n ComponentProps,\n ComponentState,\n PopoverSurfaceProps,\n PopoverSurfaceSlots,\n PopoverSurfaceState,\n} from '@fluentui/react-components';\n\nexport type PreviewSurfaceSlots = PopoverSurfaceSlots & {};\n\n/**\n * PreviewSurface Props\n */\nexport type PreviewSurfaceProps = ComponentProps<PreviewSurfaceSlots> & PopoverSurfaceProps & {};\n\n/**\n * State used in rendering PreviewSurface\n */\nexport type PreviewSurfaceState = ComponentState<PreviewSurfaceSlots> & PopoverSurfaceState & {};\n"],"names":[],"rangeMappings":";;","mappings":"AAeA;;CAEC,GACD,WAAiG"}
1
+ {"version":3,"sources":["PreviewSurface.types.ts"],"sourcesContent":["import type { DesignVersion } from '@fluentui-copilot/react-provider';\nimport type {\n ComponentProps,\n ComponentState,\n PopoverSurfaceProps,\n PopoverSurfaceSlots,\n PopoverSurfaceState,\n} from '@fluentui/react-components';\n\nexport type PreviewSurfaceSlots = PopoverSurfaceSlots & {};\n\n/**\n * PreviewSurface Props\n */\nexport type PreviewSurfaceProps = ComponentProps<PreviewSurfaceSlots> & PopoverSurfaceProps & DesignVersion & {};\n\n/**\n * State used in rendering PreviewSurface\n */\nexport type PreviewSurfaceState = ComponentState<PreviewSurfaceSlots> &\n PopoverSurfaceState &\n Pick<Required<PreviewSurfaceProps>, 'designVersion'> & {};\n"],"names":[],"rangeMappings":";;","mappings":"AAgBA;;CAEC,GACD,WAE4D"}
@@ -1,4 +1,5 @@
1
1
  import { usePopoverSurface_unstable } from '@fluentui/react-components';
2
+ import { useDesignVersion } from '@fluentui-copilot/react-provider';
2
3
  // If you add JSX to this file, be sure to change the file type to .tsx
3
4
  /**
4
5
  * Create the state required to render PreviewSurface.
@@ -10,6 +11,10 @@ import { usePopoverSurface_unstable } from '@fluentui/react-components';
10
11
  * @param ref - reference to root HTMLElement of PreviewSurface
11
12
  */
12
13
  export const usePreviewSurface_unstable = (props, ref) => {
13
- return usePopoverSurface_unstable(props, ref);
14
+ const designVersion = useDesignVersion(props.designVersion);
15
+ return {
16
+ designVersion,
17
+ ...usePopoverSurface_unstable(props, ref)
18
+ };
14
19
  };
15
20
  //# sourceMappingURL=usePreviewSurface.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["usePreviewSurface.ts"],"sourcesContent":["import type * as React from 'react';\nimport { usePopoverSurface_unstable } from '@fluentui/react-components';\nimport type { PreviewSurfaceProps, PreviewSurfaceState } from './PreviewSurface.types';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render PreviewSurface.\n *\n * The returned state can be modified with hooks such as usePreviewSurfaceStyles_unstable,\n * before being passed to renderPreviewSurface_unstable.\n *\n * @param props - props from this instance of PreviewSurface\n * @param ref - reference to root HTMLElement of PreviewSurface\n */\nexport const usePreviewSurface_unstable = (\n props: PreviewSurfaceProps,\n ref: React.Ref<HTMLDivElement>,\n): PreviewSurfaceState => {\n return usePopoverSurface_unstable(props, ref);\n};\n"],"names":["usePopoverSurface_unstable","usePreviewSurface_unstable","props","ref"],"rangeMappings":";;;;;;;;;;;;","mappings":"AACA,SAASA,0BAA0B,QAAQ,6BAA6B;AAGxE,uEAAuE;AAEvE;;;;;;;;CAQC,GACD,OAAO,MAAMC,6BAA6B,CACxCC,OACAC;IAEA,OAAOH,2BAA2BE,OAAOC;AAC3C,EAAE"}
1
+ {"version":3,"sources":["usePreviewSurface.ts"],"sourcesContent":["import type * as React from 'react';\nimport { usePopoverSurface_unstable } from '@fluentui/react-components';\nimport type { PreviewSurfaceProps, PreviewSurfaceState } from './PreviewSurface.types';\nimport { useDesignVersion } from '@fluentui-copilot/react-provider';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render PreviewSurface.\n *\n * The returned state can be modified with hooks such as usePreviewSurfaceStyles_unstable,\n * before being passed to renderPreviewSurface_unstable.\n *\n * @param props - props from this instance of PreviewSurface\n * @param ref - reference to root HTMLElement of PreviewSurface\n */\nexport const usePreviewSurface_unstable = (\n props: PreviewSurfaceProps,\n ref: React.Ref<HTMLDivElement>,\n): PreviewSurfaceState => {\n const designVersion = useDesignVersion(props.designVersion);\n return { designVersion, ...usePopoverSurface_unstable(props, ref) };\n};\n"],"names":["usePopoverSurface_unstable","useDesignVersion","usePreviewSurface_unstable","props","ref","designVersion"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AACA,SAASA,0BAA0B,QAAQ,6BAA6B;AAExE,SAASC,gBAAgB,QAAQ,mCAAmC;AAEpE,uEAAuE;AAEvE;;;;;;;;CAQC,GACD,OAAO,MAAMC,6BAA6B,CACxCC,OACAC;IAEA,MAAMC,gBAAgBJ,iBAAiBE,MAAME,aAAa;IAC1D,OAAO;QAAEA;QAAe,GAAGL,2BAA2BG,OAAOC,IAAI;IAAC;AACpE,EAAE"}
@@ -20,14 +20,31 @@ const useRootStyles = __styles({
20
20
  p: -1
21
21
  }], ".f1ewtqcl{box-sizing:border-box;}"]
22
22
  });
23
+ const useNextStyles = __styles({
24
+ root: {
25
+ Beyfa6y: 0,
26
+ Bbmb7ep: 0,
27
+ Btl43ni: 0,
28
+ B7oj6ja: 0,
29
+ Dimara: "f1kijzfu"
30
+ }
31
+ }, {
32
+ d: [[".f1kijzfu{border-radius:var(--borderRadiusXLarge);}", {
33
+ p: -1
34
+ }]]
35
+ });
23
36
  /**
24
37
  * Apply styling to the PreviewSurface slots based on the state
25
38
  */
26
39
  export const usePreviewSurfaceStyles_unstable = state => {
27
40
  'use no memo';
28
41
 
42
+ const {
43
+ designVersion
44
+ } = state;
29
45
  const rootStyles = useRootStyles();
30
- state.root.className = mergeClasses(previewSurfaceClassNames.root, rootStyles.base, state.root.className);
46
+ const nextStyles = useNextStyles();
47
+ state.root.className = mergeClasses(previewSurfaceClassNames.root, rootStyles.base, designVersion === 'next' && nextStyles.root, state.root.className);
31
48
  usePopoverSurfaceStyles_unstable(state);
32
49
  return state;
33
50
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["usePreviewSurfaceStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, usePopoverSurfaceStyles_unstable } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewSurfaceSlots, PreviewSurfaceState } from './PreviewSurface.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewSurfaceClassNames: SlotClassNames<PreviewSurfaceSlots> = {\n root: 'fai-PreviewSurface',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootStyles = makeStyles({\n base: {\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n boxSizing: 'border-box',\n },\n});\n\n/**\n * Apply styling to the PreviewSurface slots based on the state\n */\nexport const usePreviewSurfaceStyles_unstable = (state: PreviewSurfaceState): PreviewSurfaceState => {\n 'use no memo';\n\n const rootStyles = useRootStyles();\n\n state.root.className = mergeClasses(previewSurfaceClassNames.root, rootStyles.base, state.root.className);\n\n usePopoverSurfaceStyles_unstable(state);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","usePopoverSurfaceStyles_unstable","tokens","previewSurfaceClassNames","root","useRootStyles","base","padding","spacingVerticalXS","spacingHorizontalXS","boxSizing","usePreviewSurfaceStyles_unstable","state","rootStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,EAAEC,gCAAgC,QAAQ,6BAA6B;AACxG,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,gBAAgBN,WAAW;IAC/BO,MAAM;QACJC,SAAS,CAAC,EAAEL,OAAOM,iBAAiB,CAAC,CAAC,EAAEN,OAAOO,mBAAmB,CAAC,CAAC;QACpEC,WAAW;IACb;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/C;IAEA,MAAMC,aAAaR;IAEnBO,MAAMR,IAAI,CAACU,SAAS,GAAGd,aAAaG,yBAAyBC,IAAI,EAAES,WAAWP,IAAI,EAAEM,MAAMR,IAAI,CAACU,SAAS;IAExGb,iCAAiCW;IAEjC,OAAOA;AACT,EAAE"}
1
+ {"version":3,"sources":["usePreviewSurfaceStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, usePopoverSurfaceStyles_unstable } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewSurfaceSlots, PreviewSurfaceState } from './PreviewSurface.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewSurfaceClassNames: SlotClassNames<PreviewSurfaceSlots> = {\n root: 'fai-PreviewSurface',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootStyles = makeStyles({\n base: {\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n boxSizing: 'border-box',\n },\n});\n\nconst useNextStyles = makeStyles({\n root: {\n borderRadius: tokens.borderRadiusXLarge,\n },\n});\n\n/**\n * Apply styling to the PreviewSurface slots based on the state\n */\nexport const usePreviewSurfaceStyles_unstable = (state: PreviewSurfaceState): PreviewSurfaceState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootStyles = useRootStyles();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n previewSurfaceClassNames.root,\n rootStyles.base,\n designVersion === 'next' && nextStyles.root,\n state.root.className,\n );\n\n usePopoverSurfaceStyles_unstable(state);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","usePopoverSurfaceStyles_unstable","tokens","previewSurfaceClassNames","root","useRootStyles","base","padding","spacingVerticalXS","spacingHorizontalXS","boxSizing","useNextStyles","borderRadius","borderRadiusXLarge","usePreviewSurfaceStyles_unstable","state","designVersion","rootStyles","nextStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,EAAEC,gCAAgC,QAAQ,6BAA6B;AACxG,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,gBAAgBN,WAAW;IAC/BO,MAAM;QACJC,SAAS,CAAC,EAAEL,OAAOM,iBAAiB,CAAC,CAAC,EAAEN,OAAOO,mBAAmB,CAAC,CAAC;QACpEC,WAAW;IACb;AACF;AAEA,MAAMC,gBAAgBZ,WAAW;IAC/BK,MAAM;QACJQ,cAAcV,OAAOW,kBAAkB;IACzC;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/C;IAEA,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAE1B,MAAME,aAAaZ;IACnB,MAAMa,aAAaP;IAEnBI,MAAMX,IAAI,CAACe,SAAS,GAAGnB,aACrBG,yBAAyBC,IAAI,EAC7Ba,WAAWX,IAAI,EACfU,kBAAkB,UAAUE,WAAWd,IAAI,EAC3CW,MAAMX,IAAI,CAACe,SAAS;IAGtBlB,iCAAiCc;IAEjC,OAAOA;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["PreviewSurface.types.ts"],"sourcesContent":["import type {\n ComponentProps,\n ComponentState,\n PopoverSurfaceProps,\n PopoverSurfaceSlots,\n PopoverSurfaceState,\n} from '@fluentui/react-components';\n\nexport type PreviewSurfaceSlots = PopoverSurfaceSlots & {};\n\n/**\n * PreviewSurface Props\n */\nexport type PreviewSurfaceProps = ComponentProps<PreviewSurfaceSlots> & PopoverSurfaceProps & {};\n\n/**\n * State used in rendering PreviewSurface\n */\nexport type PreviewSurfaceState = ComponentState<PreviewSurfaceSlots> & PopoverSurfaceState & {};\n"],"names":[],"rangeMappings":";;","mappings":"AAeA;;CAEC"}
1
+ {"version":3,"sources":["PreviewSurface.types.ts"],"sourcesContent":["import type { DesignVersion } from '@fluentui-copilot/react-provider';\nimport type {\n ComponentProps,\n ComponentState,\n PopoverSurfaceProps,\n PopoverSurfaceSlots,\n PopoverSurfaceState,\n} from '@fluentui/react-components';\n\nexport type PreviewSurfaceSlots = PopoverSurfaceSlots & {};\n\n/**\n * PreviewSurface Props\n */\nexport type PreviewSurfaceProps = ComponentProps<PreviewSurfaceSlots> & PopoverSurfaceProps & DesignVersion & {};\n\n/**\n * State used in rendering PreviewSurface\n */\nexport type PreviewSurfaceState = ComponentState<PreviewSurfaceSlots> &\n PopoverSurfaceState &\n Pick<Required<PreviewSurfaceProps>, 'designVersion'> & {};\n"],"names":[],"rangeMappings":";;","mappings":"AAgBA;;CAEC"}
@@ -9,6 +9,11 @@ Object.defineProperty(exports, "usePreviewSurface_unstable", {
9
9
  }
10
10
  });
11
11
  const _reactcomponents = require("@fluentui/react-components");
12
+ const _reactprovider = require("@fluentui-copilot/react-provider");
12
13
  const usePreviewSurface_unstable = (props, ref)=>{
13
- return (0, _reactcomponents.usePopoverSurface_unstable)(props, ref);
14
+ const designVersion = (0, _reactprovider.useDesignVersion)(props.designVersion);
15
+ return {
16
+ designVersion,
17
+ ...(0, _reactcomponents.usePopoverSurface_unstable)(props, ref)
18
+ };
14
19
  }; //# sourceMappingURL=usePreviewSurface.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["usePreviewSurface.ts"],"sourcesContent":["import type * as React from 'react';\nimport { usePopoverSurface_unstable } from '@fluentui/react-components';\nimport type { PreviewSurfaceProps, PreviewSurfaceState } from './PreviewSurface.types';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render PreviewSurface.\n *\n * The returned state can be modified with hooks such as usePreviewSurfaceStyles_unstable,\n * before being passed to renderPreviewSurface_unstable.\n *\n * @param props - props from this instance of PreviewSurface\n * @param ref - reference to root HTMLElement of PreviewSurface\n */\nexport const usePreviewSurface_unstable = (\n props: PreviewSurfaceProps,\n ref: React.Ref<HTMLDivElement>,\n): PreviewSurfaceState => {\n return usePopoverSurface_unstable(props, ref);\n};\n"],"names":["usePopoverSurface_unstable","props","ref"],"rangeMappings":";;;;;;;;;;;;","mappings":";;;;+BAmBSA;;;eAAAA;;;iCAlBkC;AAkBzC,MAAOA,6BAA2BC,CAAAA,OAAOC;IACzC,OAAAF,IAAAA,2CAAA,EAAAC,OAAAC"}
1
+ {"version":3,"sources":["usePreviewSurface.ts"],"sourcesContent":["import type * as React from 'react';\nimport { usePopoverSurface_unstable } from '@fluentui/react-components';\nimport type { PreviewSurfaceProps, PreviewSurfaceState } from './PreviewSurface.types';\nimport { useDesignVersion } from '@fluentui-copilot/react-provider';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render PreviewSurface.\n *\n * The returned state can be modified with hooks such as usePreviewSurfaceStyles_unstable,\n * before being passed to renderPreviewSurface_unstable.\n *\n * @param props - props from this instance of PreviewSurface\n * @param ref - reference to root HTMLElement of PreviewSurface\n */\nexport const usePreviewSurface_unstable = (\n props: PreviewSurfaceProps,\n ref: React.Ref<HTMLDivElement>,\n): PreviewSurfaceState => {\n const designVersion = useDesignVersion(props.designVersion);\n return { designVersion, ...usePopoverSurface_unstable(props, ref) };\n};\n"],"names":["designVersion","useDesignVersion","props","usePopoverSurface_unstable","ref"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":";;;;+BAoBQA;;;eAAAA;;;iCAnBmC;+BAEV;AAiB/B,MAAMA,6BAAgBC,CAAiBC,OAAMF;UAC7CA,gBAAOC,IAAAA,+BAAA,EAAAC,MAAAF,aAAA;WAAEA;;QAAyD,GAAAG,IAAAA,2CAAA,EAAAD,OAAAE,IAAA;IAClE"}
@@ -42,10 +42,30 @@ const previewSurfaceClassNames = {
42
42
  ".f1ewtqcl{box-sizing:border-box;}"
43
43
  ]
44
44
  });
45
+ const useNextStyles = (0, _reactcomponents.__styles)({
46
+ root: {
47
+ Beyfa6y: 0,
48
+ Bbmb7ep: 0,
49
+ Btl43ni: 0,
50
+ B7oj6ja: 0,
51
+ Dimara: "f1kijzfu"
52
+ }
53
+ }, {
54
+ d: [
55
+ [
56
+ ".f1kijzfu{border-radius:var(--borderRadiusXLarge);}",
57
+ {
58
+ p: -1
59
+ }
60
+ ]
61
+ ]
62
+ });
45
63
  const usePreviewSurfaceStyles_unstable = (state)=>{
46
64
  'use no memo';
65
+ const { designVersion } = state;
47
66
  const rootStyles = useRootStyles();
48
- state.root.className = (0, _reactcomponents.mergeClasses)(previewSurfaceClassNames.root, rootStyles.base, state.root.className);
67
+ const nextStyles = useNextStyles();
68
+ state.root.className = (0, _reactcomponents.mergeClasses)(previewSurfaceClassNames.root, rootStyles.base, designVersion === 'next' && nextStyles.root, state.root.className);
49
69
  (0, _reactcomponents.usePopoverSurfaceStyles_unstable)(state);
50
70
  return state;
51
71
  }; //# sourceMappingURL=usePreviewSurfaceStyles.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["usePreviewSurfaceStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, usePopoverSurfaceStyles_unstable } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewSurfaceSlots, PreviewSurfaceState } from './PreviewSurface.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewSurfaceClassNames: SlotClassNames<PreviewSurfaceSlots> = {\n root: 'fai-PreviewSurface',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootStyles = makeStyles({\n base: {\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n boxSizing: 'border-box',\n },\n});\n\n/**\n * Apply styling to the PreviewSurface slots based on the state\n */\nexport const usePreviewSurfaceStyles_unstable = (state: PreviewSurfaceState): PreviewSurfaceState => {\n 'use no memo';\n\n const rootStyles = useRootStyles();\n\n state.root.className = mergeClasses(previewSurfaceClassNames.root, rootStyles.base, state.root.className);\n\n usePopoverSurfaceStyles_unstable(state);\n\n return state;\n};\n"],"names":["previewSurfaceClassNames","root","base","__styles","padding","boxSizing","uwmqm3","z189sj","z8tnut","B7ck84d","state","usePopoverSurfaceStyles_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,wBAAAA;eAAAA;;;;;;iCALsD;AAK5D,MAAMA,2BAAgE;UAC3EC;AACF;AAEA;;CAEC,SAECC,gBAAMC,IAAAA,yBAAA,EAAA;UACJC;iBACAC;QACFC,QAAA;QACFC,QAAA;QAEAC,QAAA;;QAGAC,SAAO;;;OAKLC;QAAAA;YAAAA;YAA8ER;gBAE9ES,GAAAA,CAAAA;;SAEA;QAAA;KAAOD;AACT"}
1
+ {"version":3,"sources":["usePreviewSurfaceStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, usePopoverSurfaceStyles_unstable } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewSurfaceSlots, PreviewSurfaceState } from './PreviewSurface.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewSurfaceClassNames: SlotClassNames<PreviewSurfaceSlots> = {\n root: 'fai-PreviewSurface',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootStyles = makeStyles({\n base: {\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n boxSizing: 'border-box',\n },\n});\n\nconst useNextStyles = makeStyles({\n root: {\n borderRadius: tokens.borderRadiusXLarge,\n },\n});\n\n/**\n * Apply styling to the PreviewSurface slots based on the state\n */\nexport const usePreviewSurfaceStyles_unstable = (state: PreviewSurfaceState): PreviewSurfaceState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootStyles = useRootStyles();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n previewSurfaceClassNames.root,\n rootStyles.base,\n designVersion === 'next' && nextStyles.root,\n state.root.className,\n );\n\n usePopoverSurfaceStyles_unstable(state);\n\n return state;\n};\n"],"names":["previewSurfaceClassNames","root","base","__styles","padding","boxSizing","uwmqm3","z189sj","z8tnut","useNextStyles","borderRadius","d","usePreviewSurfaceStyles_unstable","designVersion","state","Beyfa6y","nextStyles","usePopoverSurfaceStyles_unstable","B7oj6ja","Dimara"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,wBAAAA;eAAAA;;;;;;iCALsD;AAK5D,MAAMA,2BAAgE;UAC3EC;AACF;AAEA;;CAEC,SAECC,gBAAMC,IAAAA,yBAAA,EAAA;UACJC;iBACAC;QACFC,QAAA;QACFC,QAAA;QAEAC,QAAMC;QACJR,SAAM;iBACJS;;AAEJ,GAAA;IAEAC,GAAA;QAAA;YAAA;YAAA;;YAEC;SACD;QAAA;KAAaC;;MAGXH,gBAAQI,IAAAA,yBAAkBC,EAAAA;UAE1B;QACAC,SAAMC;QAENF,SAAMb;QAONgB,SAAAA;QAEAC,SAAOJ;QACPK,QAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-copilot/react-preview",
3
- "version": "0.0.0-nightly-20250319-0404-611607b9.1",
3
+ "version": "0.0.0-nightly-20250320-0405-4a9638ac.1",
4
4
  "description": "Preview components.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -12,7 +12,8 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@fluentui-copilot/tokens": "^0.0.0-nightly-20250319-0404-611607b9.1",
15
+ "@fluentui-copilot/react-provider": "^0.0.0-nightly-20250320-0405-4a9638ac.1",
16
+ "@fluentui-copilot/tokens": "^0.0.0-nightly-20250320-0405-4a9638ac.1",
16
17
  "@swc/helpers": "^0.5.1"
17
18
  },
18
19
  "peerDependencies": {