@fluentui/react-dialog 9.8.0 → 9.8.2

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,7 +2,73 @@
2
2
  "name": "@fluentui/react-dialog",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 23 Oct 2023 09:48:55 GMT",
5
+ "date": "Wed, 01 Nov 2023 12:51:06 GMT",
6
+ "tag": "@fluentui/react-dialog_v9.8.2",
7
+ "version": "9.8.2",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "bernardo.sunderhus@gmail.com",
12
+ "package": "@fluentui/react-dialog",
13
+ "commit": "c4d00c3c471ba73ebd940edbf9cd1dff0969a71d",
14
+ "comment": "chore: remove animation from test environments"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-dialog",
19
+ "comment": "Bump @fluentui/react-shared-contexts to v9.11.1",
20
+ "commit": "838b05367dbdddb17732b9e0c807090e0a4445d5"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-dialog",
25
+ "comment": "Bump @fluentui/react-tabster to v9.14.3",
26
+ "commit": "838b05367dbdddb17732b9e0c807090e0a4445d5"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-dialog",
31
+ "comment": "Bump @fluentui/react-theme to v9.1.15",
32
+ "commit": "838b05367dbdddb17732b9e0c807090e0a4445d5"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-dialog",
37
+ "comment": "Bump @fluentui/react-portal to v9.3.27",
38
+ "commit": "838b05367dbdddb17732b9e0c807090e0a4445d5"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Sat, 28 Oct 2023 23:35:59 GMT",
45
+ "tag": "@fluentui/react-dialog_v9.8.1",
46
+ "version": "9.8.1",
47
+ "comments": {
48
+ "patch": [
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-dialog",
52
+ "comment": "Bump @fluentui/react-shared-contexts to v9.11.0",
53
+ "commit": "555b0fae3ec7f052e765557ae243c58000514f92"
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui/react-dialog",
58
+ "comment": "Bump @fluentui/react-tabster to v9.14.2",
59
+ "commit": "555b0fae3ec7f052e765557ae243c58000514f92"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-dialog",
64
+ "comment": "Bump @fluentui/react-portal to v9.3.26",
65
+ "commit": "555b0fae3ec7f052e765557ae243c58000514f92"
66
+ }
67
+ ]
68
+ }
69
+ },
70
+ {
71
+ "date": "Mon, 23 Oct 2023 09:51:56 GMT",
6
72
  "tag": "@fluentui/react-dialog_v9.8.0",
7
73
  "version": "9.8.0",
8
74
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,36 @@
1
1
  # Change Log - @fluentui/react-dialog
2
2
 
3
- This log was last generated on Mon, 23 Oct 2023 09:48:55 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 01 Nov 2023 12:51:06 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.8.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.8.2)
8
+
9
+ Wed, 01 Nov 2023 12:51:06 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.8.1..@fluentui/react-dialog_v9.8.2)
11
+
12
+ ### Patches
13
+
14
+ - chore: remove animation from test environments ([PR #29692](https://github.com/microsoft/fluentui/pull/29692) by bernardo.sunderhus@gmail.com)
15
+ - Bump @fluentui/react-shared-contexts to v9.11.1 ([PR #29663](https://github.com/microsoft/fluentui/pull/29663) by beachball)
16
+ - Bump @fluentui/react-tabster to v9.14.3 ([PR #29663](https://github.com/microsoft/fluentui/pull/29663) by beachball)
17
+ - Bump @fluentui/react-theme to v9.1.15 ([PR #29663](https://github.com/microsoft/fluentui/pull/29663) by beachball)
18
+ - Bump @fluentui/react-portal to v9.3.27 ([PR #29663](https://github.com/microsoft/fluentui/pull/29663) by beachball)
19
+
20
+ ## [9.8.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.8.1)
21
+
22
+ Sat, 28 Oct 2023 23:35:59 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.8.0..@fluentui/react-dialog_v9.8.1)
24
+
25
+ ### Patches
26
+
27
+ - Bump @fluentui/react-shared-contexts to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
28
+ - Bump @fluentui/react-tabster to v9.14.2 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
29
+ - Bump @fluentui/react-portal to v9.3.26 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
30
+
7
31
  ## [9.8.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.8.0)
8
32
 
9
- Mon, 23 Oct 2023 09:48:55 GMT
33
+ Mon, 23 Oct 2023 09:51:56 GMT
10
34
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.7.10..@fluentui/react-dialog_v9.8.0)
11
35
 
12
36
  ### Minor changes
@@ -12,7 +12,10 @@ import { DialogTransitionProvider } from '../../contexts/dialogTransitionContext
12
12
  value: contextValues.dialogSurface,
13
13
  children: [
14
14
  trigger,
15
- /*#__PURE__*/ _jsx(Transition, {
15
+ process.env.NODE_ENV === 'test' ? state.open && /*#__PURE__*/ _jsx(DialogTransitionProvider, {
16
+ value: 'entered',
17
+ children: content
18
+ }) : /*#__PURE__*/ _jsx(Transition, {
16
19
  mountOnEnter: true,
17
20
  unmountOnExit: true,
18
21
  in: state.open,
@@ -1 +1 @@
1
- {"version":3,"sources":["renderDialog.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { Transition } from 'react-transition-group';\nimport { DialogProvider, DialogSurfaceProvider } from '../../contexts';\nimport type { DialogState, DialogContextValues } from './Dialog.types';\nimport { DialogTransitionProvider } from '../../contexts/dialogTransitionContext';\n\n/**\n * Render the final JSX of Dialog\n */\nexport const renderDialog_unstable = (state: DialogState, contextValues: DialogContextValues) => {\n const { content, trigger } = state;\n\n return (\n <DialogProvider value={contextValues.dialog}>\n <DialogSurfaceProvider value={contextValues.dialogSurface}>\n {trigger}\n <Transition\n mountOnEnter\n unmountOnExit\n in={state.open}\n nodeRef={state.dialogRef}\n // FIXME: this should not be hardcoded tokens.durationGentle\n timeout={250}\n >\n {status => <DialogTransitionProvider value={status}>{content}</DialogTransitionProvider>}\n </Transition>\n </DialogSurfaceProvider>\n </DialogProvider>\n );\n};\n"],"names":["Transition","DialogProvider","DialogSurfaceProvider","DialogTransitionProvider","renderDialog_unstable","state","contextValues","content","trigger","value","dialog","dialogSurface","mountOnEnter","unmountOnExit","in","open","nodeRef","dialogRef","timeout","status"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,UAAU,QAAQ,yBAAyB;AACpD,SAASC,cAAc,EAAEC,qBAAqB,QAAQ,iBAAiB;AAEvE,SAASC,wBAAwB,QAAQ,yCAAyC;AAElF;;CAEC,GACD,OAAO,MAAMC,wBAAwB,CAACC,OAAoBC;IACxD,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAE7B,qBACE,KAACJ;QAAeQ,OAAOH,cAAcI,MAAM;kBACzC,cAAA,MAACR;YAAsBO,OAAOH,cAAcK,aAAa;;gBACtDH;8BACD,KAACR;oBACCY,YAAY;oBACZC,aAAa;oBACbC,IAAIT,MAAMU,IAAI;oBACdC,SAASX,MAAMY,SAAS;oBACxB,4DAA4D;oBAC5DC,SAAS;8BAERC,CAAAA,uBAAU,KAAChB;4BAAyBM,OAAOU;sCAASZ;;;;;;AAK/D,EAAE"}
1
+ {"version":3,"sources":["renderDialog.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { Transition } from 'react-transition-group';\nimport { DialogProvider, DialogSurfaceProvider } from '../../contexts';\nimport type { DialogState, DialogContextValues } from './Dialog.types';\nimport { DialogTransitionProvider } from '../../contexts/dialogTransitionContext';\n\n/**\n * Render the final JSX of Dialog\n */\nexport const renderDialog_unstable = (state: DialogState, contextValues: DialogContextValues) => {\n const { content, trigger } = state;\n\n return (\n <DialogProvider value={contextValues.dialog}>\n <DialogSurfaceProvider value={contextValues.dialogSurface}>\n {trigger}\n {process.env.NODE_ENV === 'test' ? (\n state.open && <DialogTransitionProvider value={'entered'}>{content}</DialogTransitionProvider>\n ) : (\n <Transition\n mountOnEnter\n unmountOnExit\n in={state.open}\n nodeRef={state.dialogRef}\n // FIXME: this should not be hardcoded tokens.durationGentle\n timeout={250}\n >\n {status => <DialogTransitionProvider value={status}>{content}</DialogTransitionProvider>}\n </Transition>\n )}\n </DialogSurfaceProvider>\n </DialogProvider>\n );\n};\n"],"names":["Transition","DialogProvider","DialogSurfaceProvider","DialogTransitionProvider","renderDialog_unstable","state","contextValues","content","trigger","value","dialog","dialogSurface","process","env","NODE_ENV","open","mountOnEnter","unmountOnExit","in","nodeRef","dialogRef","timeout","status"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,UAAU,QAAQ,yBAAyB;AACpD,SAASC,cAAc,EAAEC,qBAAqB,QAAQ,iBAAiB;AAEvE,SAASC,wBAAwB,QAAQ,yCAAyC;AAElF;;CAEC,GACD,OAAO,MAAMC,wBAAwB,CAACC,OAAoBC;IACxD,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAE7B,qBACE,KAACJ;QAAeQ,OAAOH,cAAcI,MAAM;kBACzC,cAAA,MAACR;YAAsBO,OAAOH,cAAcK,aAAa;;gBACtDH;gBACAI,QAAQC,GAAG,CAACC,QAAQ,KAAK,SACxBT,MAAMU,IAAI,kBAAI,KAACZ;oBAAyBM,OAAO;8BAAYF;mCAE3D,KAACP;oBACCgB,YAAY;oBACZC,aAAa;oBACbC,IAAIb,MAAMU,IAAI;oBACdI,SAASd,MAAMe,SAAS;oBACxB,4DAA4D;oBAC5DC,SAAS;8BAERC,CAAAA,uBAAU,KAACnB;4BAAyBM,OAAOa;sCAASf;;;;;;AAMjE,EAAE"}
@@ -20,7 +20,10 @@ const renderDialog_unstable = (state, contextValues)=>{
20
20
  value: contextValues.dialogSurface,
21
21
  children: [
22
22
  trigger,
23
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_reacttransitiongroup.Transition, {
23
+ process.env.NODE_ENV === 'test' ? state.open && /*#__PURE__*/ (0, _jsxruntime.jsx)(_dialogTransitionContext.DialogTransitionProvider, {
24
+ value: 'entered',
25
+ children: content
26
+ }) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_reacttransitiongroup.Transition, {
24
27
  mountOnEnter: true,
25
28
  unmountOnExit: true,
26
29
  in: state.open,
@@ -1 +1 @@
1
- {"version":3,"sources":["renderDialog.js"],"sourcesContent":[" import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { Transition } from 'react-transition-group';\nimport { DialogProvider, DialogSurfaceProvider } from '../../contexts';\nimport { DialogTransitionProvider } from '../../contexts/dialogTransitionContext';\n/**\n * Render the final JSX of Dialog\n */ export const renderDialog_unstable = (state, contextValues)=>{\n const { content, trigger } = state;\n return /*#__PURE__*/ _jsx(DialogProvider, {\n value: contextValues.dialog,\n children: /*#__PURE__*/ _jsxs(DialogSurfaceProvider, {\n value: contextValues.dialogSurface,\n children: [\n trigger,\n /*#__PURE__*/ _jsx(Transition, {\n mountOnEnter: true,\n unmountOnExit: true,\n in: state.open,\n nodeRef: state.dialogRef,\n // FIXME: this should not be hardcoded tokens.durationGentle\n timeout: 250,\n children: (status)=>/*#__PURE__*/ _jsx(DialogTransitionProvider, {\n value: status,\n children: content\n })\n })\n ]\n })\n });\n};\n"],"names":["renderDialog_unstable","state","contextValues","content","trigger","_jsx","DialogProvider","value","dialog","children","_jsxs","DialogSurfaceProvider","dialogSurface","Transition","mountOnEnter","unmountOnExit","in","open","nodeRef","dialogRef","timeout","status","DialogTransitionProvider"],"mappings":";;;;+BAMiBA;;;eAAAA;;;4BAN4B;sCAClB;0BAC2B;yCACb;AAG9B,MAAMA,wBAAwB,CAACC,OAAOC;IAC7C,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAC7B,OAAO,WAAW,GAAGI,IAAAA,eAAI,EAACC,wBAAc,EAAE;QACtCC,OAAOL,cAAcM,MAAM;QAC3BC,UAAU,WAAW,GAAGC,IAAAA,gBAAK,EAACC,+BAAqB,EAAE;YACjDJ,OAAOL,cAAcU,aAAa;YAClCH,UAAU;gBACNL;gBACA,WAAW,GAAGC,IAAAA,eAAI,EAACQ,gCAAU,EAAE;oBAC3BC,cAAc;oBACdC,eAAe;oBACfC,IAAIf,MAAMgB,IAAI;oBACdC,SAASjB,MAAMkB,SAAS;oBACxB,4DAA4D;oBAC5DC,SAAS;oBACTX,UAAU,CAACY,SAAS,WAAW,GAAGhB,IAAAA,eAAI,EAACiB,iDAAwB,EAAE;4BACzDf,OAAOc;4BACPZ,UAAUN;wBACd;gBACR;aACH;QACL;IACJ;AACJ"}
1
+ {"version":3,"sources":["renderDialog.js"],"sourcesContent":[" import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { Transition } from 'react-transition-group';\nimport { DialogProvider, DialogSurfaceProvider } from '../../contexts';\nimport { DialogTransitionProvider } from '../../contexts/dialogTransitionContext';\n/**\n * Render the final JSX of Dialog\n */ export const renderDialog_unstable = (state, contextValues)=>{\n const { content, trigger } = state;\n return /*#__PURE__*/ _jsx(DialogProvider, {\n value: contextValues.dialog,\n children: /*#__PURE__*/ _jsxs(DialogSurfaceProvider, {\n value: contextValues.dialogSurface,\n children: [\n trigger,\n process.env.NODE_ENV === 'test' ? state.open && /*#__PURE__*/ _jsx(DialogTransitionProvider, {\n value: 'entered',\n children: content\n }) : /*#__PURE__*/ _jsx(Transition, {\n mountOnEnter: true,\n unmountOnExit: true,\n in: state.open,\n nodeRef: state.dialogRef,\n // FIXME: this should not be hardcoded tokens.durationGentle\n timeout: 250,\n children: (status)=>/*#__PURE__*/ _jsx(DialogTransitionProvider, {\n value: status,\n children: content\n })\n })\n ]\n })\n });\n};\n"],"names":["renderDialog_unstable","state","contextValues","content","trigger","_jsx","DialogProvider","value","dialog","children","_jsxs","DialogSurfaceProvider","dialogSurface","process","env","NODE_ENV","open","DialogTransitionProvider","Transition","mountOnEnter","unmountOnExit","in","nodeRef","dialogRef","timeout","status"],"mappings":";;;;+BAMiBA;;;eAAAA;;;4BAN4B;sCAClB;0BAC2B;yCACb;AAG9B,MAAMA,wBAAwB,CAACC,OAAOC;IAC7C,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAE,GAAGH;IAC7B,OAAO,WAAW,GAAGI,IAAAA,eAAI,EAACC,wBAAc,EAAE;QACtCC,OAAOL,cAAcM,MAAM;QAC3BC,UAAU,WAAW,GAAGC,IAAAA,gBAAK,EAACC,+BAAqB,EAAE;YACjDJ,OAAOL,cAAcU,aAAa;YAClCH,UAAU;gBACNL;gBACAS,QAAQC,GAAG,CAACC,QAAQ,KAAK,SAASd,MAAMe,IAAI,IAAI,WAAW,GAAGX,IAAAA,eAAI,EAACY,iDAAwB,EAAE;oBACzFV,OAAO;oBACPE,UAAUN;gBACd,KAAK,WAAW,GAAGE,IAAAA,eAAI,EAACa,gCAAU,EAAE;oBAChCC,cAAc;oBACdC,eAAe;oBACfC,IAAIpB,MAAMe,IAAI;oBACdM,SAASrB,MAAMsB,SAAS;oBACxB,4DAA4D;oBAC5DC,SAAS;oBACTf,UAAU,CAACgB,SAAS,WAAW,GAAGpB,IAAAA,eAAI,EAACY,iDAAwB,EAAE;4BACzDV,OAAOkB;4BACPhB,UAAUN;wBACd;gBACR;aACH;QACL;IACJ;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-dialog",
3
- "version": "9.8.0",
3
+ "version": "9.8.2",
4
4
  "description": "Dialog component for Fluent UI React",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -41,12 +41,12 @@
41
41
  "react-transition-group": "^4.4.1",
42
42
  "@fluentui/keyboard-keys": "^9.0.6",
43
43
  "@fluentui/react-context-selector": "^9.1.41",
44
- "@fluentui/react-shared-contexts": "^9.10.0",
44
+ "@fluentui/react-shared-contexts": "^9.11.1",
45
45
  "@fluentui/react-aria": "^9.3.43",
46
46
  "@fluentui/react-icons": "^2.0.217",
47
- "@fluentui/react-tabster": "^9.14.1",
48
- "@fluentui/react-theme": "^9.1.14",
49
- "@fluentui/react-portal": "^9.3.25",
47
+ "@fluentui/react-tabster": "^9.14.3",
48
+ "@fluentui/react-theme": "^9.1.15",
49
+ "@fluentui/react-portal": "^9.3.27",
50
50
  "@griffel/react": "^1.5.14",
51
51
  "@swc/helpers": "^0.5.1"
52
52
  },