@fluentui/react-utilities 0.0.0-nightly906d31cfa320211115.1 → 0.0.0-nightly96d9c9354420220210.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.
Files changed (104) hide show
  1. package/CHANGELOG.json +127 -6
  2. package/CHANGELOG.md +26 -6
  3. package/dist/react-utilities.d.ts +232 -105
  4. package/lib/compose/getSlots.d.ts +11 -10
  5. package/lib/compose/getSlots.js +7 -6
  6. package/lib/compose/getSlots.js.map +1 -1
  7. package/lib/compose/index.d.ts +0 -1
  8. package/lib/compose/index.js +0 -1
  9. package/lib/compose/index.js.map +1 -1
  10. package/lib/compose/resolveShorthand.d.ts +10 -6
  11. package/lib/compose/resolveShorthand.js +5 -5
  12. package/lib/compose/resolveShorthand.js.map +1 -1
  13. package/lib/compose/types.d.ts +86 -35
  14. package/lib/compose/types.js.map +1 -1
  15. package/lib/hooks/index.d.ts +1 -1
  16. package/lib/hooks/index.js +1 -1
  17. package/lib/hooks/index.js.map +1 -1
  18. package/lib/hooks/useControllableState.d.ts +16 -6
  19. package/lib/hooks/useControllableState.js +13 -8
  20. package/lib/hooks/useControllableState.js.map +1 -1
  21. package/lib/hooks/useMergedEventCallbacks.d.ts +18 -0
  22. package/lib/hooks/useMergedEventCallbacks.js +26 -0
  23. package/lib/hooks/useMergedEventCallbacks.js.map +1 -0
  24. package/lib/hooks/useOnClickOutside.js.map +1 -1
  25. package/lib/utils/applyTriggerPropsToChildren.d.ts +1 -1
  26. package/lib/utils/applyTriggerPropsToChildren.js +23 -3
  27. package/lib/utils/applyTriggerPropsToChildren.js.map +1 -1
  28. package/lib/utils/getNativeElementProps.d.ts +22 -0
  29. package/lib/utils/getNativeElementProps.js +22 -0
  30. package/lib/utils/getNativeElementProps.js.map +1 -1
  31. package/lib/utils/getReactCallbackName.d.ts +25 -0
  32. package/lib/utils/getReactCallbackName.js +26 -0
  33. package/lib/utils/getReactCallbackName.js.map +1 -0
  34. package/lib/utils/getTriggerChild.d.ts +22 -0
  35. package/lib/utils/getTriggerChild.js +26 -0
  36. package/lib/utils/getTriggerChild.js.map +1 -0
  37. package/lib/utils/index.d.ts +2 -1
  38. package/lib/utils/index.js +2 -1
  39. package/lib/utils/index.js.map +1 -1
  40. package/lib/utils/isFluentTrigger.d.ts +22 -0
  41. package/lib/utils/isFluentTrigger.js +8 -0
  42. package/lib/utils/isFluentTrigger.js.map +1 -0
  43. package/lib/utils/properties.js +40 -20
  44. package/lib/utils/properties.js.map +1 -1
  45. package/lib-commonjs/compose/getSlots.d.ts +11 -10
  46. package/lib-commonjs/compose/getSlots.js +7 -7
  47. package/lib-commonjs/compose/getSlots.js.map +1 -1
  48. package/lib-commonjs/compose/index.d.ts +0 -1
  49. package/lib-commonjs/compose/index.js +0 -2
  50. package/lib-commonjs/compose/index.js.map +1 -1
  51. package/lib-commonjs/compose/resolveShorthand.d.ts +10 -6
  52. package/lib-commonjs/compose/resolveShorthand.js +5 -5
  53. package/lib-commonjs/compose/resolveShorthand.js.map +1 -1
  54. package/lib-commonjs/compose/types.d.ts +86 -35
  55. package/lib-commonjs/compose/types.js.map +1 -1
  56. package/lib-commonjs/hooks/index.d.ts +1 -1
  57. package/lib-commonjs/hooks/index.js +2 -2
  58. package/lib-commonjs/hooks/index.js.map +1 -1
  59. package/lib-commonjs/hooks/useControllableState.d.ts +16 -6
  60. package/lib-commonjs/hooks/useControllableState.js +13 -8
  61. package/lib-commonjs/hooks/useControllableState.js.map +1 -1
  62. package/lib-commonjs/hooks/useMergedEventCallbacks.d.ts +18 -0
  63. package/lib-commonjs/hooks/useMergedEventCallbacks.js +36 -0
  64. package/lib-commonjs/hooks/useMergedEventCallbacks.js.map +1 -0
  65. package/lib-commonjs/hooks/useOnClickOutside.js.map +1 -1
  66. package/lib-commonjs/utils/applyTriggerPropsToChildren.d.ts +1 -1
  67. package/lib-commonjs/utils/applyTriggerPropsToChildren.js +24 -4
  68. package/lib-commonjs/utils/applyTriggerPropsToChildren.js.map +1 -1
  69. package/lib-commonjs/utils/getNativeElementProps.d.ts +22 -0
  70. package/lib-commonjs/utils/getNativeElementProps.js +25 -1
  71. package/lib-commonjs/utils/getNativeElementProps.js.map +1 -1
  72. package/lib-commonjs/utils/getReactCallbackName.d.ts +25 -0
  73. package/lib-commonjs/utils/getReactCallbackName.js +35 -0
  74. package/lib-commonjs/utils/getReactCallbackName.js.map +1 -0
  75. package/lib-commonjs/utils/getTriggerChild.d.ts +22 -0
  76. package/lib-commonjs/utils/getTriggerChild.js +37 -0
  77. package/lib-commonjs/utils/getTriggerChild.js.map +1 -0
  78. package/lib-commonjs/utils/index.d.ts +2 -1
  79. package/lib-commonjs/utils/index.js +4 -2
  80. package/lib-commonjs/utils/index.js.map +1 -1
  81. package/lib-commonjs/utils/isFluentTrigger.d.ts +22 -0
  82. package/lib-commonjs/utils/isFluentTrigger.js +17 -0
  83. package/lib-commonjs/utils/isFluentTrigger.js.map +1 -0
  84. package/lib-commonjs/utils/properties.js +40 -20
  85. package/lib-commonjs/utils/properties.js.map +1 -1
  86. package/package.json +6 -10
  87. package/lib/compose/nullRender.d.ts +0 -4
  88. package/lib/compose/nullRender.js +0 -5
  89. package/lib/compose/nullRender.js.map +0 -1
  90. package/lib/hooks/useControllableValue.d.ts +0 -20
  91. package/lib/hooks/useControllableValue.js +0 -57
  92. package/lib/hooks/useControllableValue.js.map +0 -1
  93. package/lib/utils/onlyChild.d.ts +0 -5
  94. package/lib/utils/onlyChild.js +0 -13
  95. package/lib/utils/onlyChild.js.map +0 -1
  96. package/lib-commonjs/compose/nullRender.d.ts +0 -4
  97. package/lib-commonjs/compose/nullRender.js +0 -14
  98. package/lib-commonjs/compose/nullRender.js.map +0 -1
  99. package/lib-commonjs/hooks/useControllableValue.d.ts +0 -20
  100. package/lib-commonjs/hooks/useControllableValue.js +0 -68
  101. package/lib-commonjs/hooks/useControllableValue.js.map +0 -1
  102. package/lib-commonjs/utils/onlyChild.d.ts +0 -5
  103. package/lib-commonjs/utils/onlyChild.js +0 -23
  104. package/lib-commonjs/utils/onlyChild.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,22 +2,143 @@
2
2
  "name": "@fluentui/react-utilities",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 15 Nov 2021 04:16:29 GMT",
6
- "tag": "@fluentui/react-utilities_v0.0.0-nightly906d31cfa320211115.1",
7
- "version": "0.0.0-nightly906d31cfa320211115.1",
5
+ "date": "Thu, 10 Feb 2022 04:16:37 GMT",
6
+ "tag": "@fluentui/react-utilities_v0.0.0-nightly96d9c9354420220210.1",
7
+ "version": "0.0.0-nightly96d9c9354420220210.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-utilities",
13
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246",
13
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "behowell@microsoft.com",
18
+ "package": "@fluentui/react-utilities",
19
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
20
+ "comment": "Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
21
+ },
22
+ {
23
+ "author": "behowell@microsoft.com",
24
+ "package": "@fluentui/react-utilities",
25
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
26
+ "comment": "getSlots: remove slotNames param, and infer from state.components instead"
27
+ },
28
+ {
29
+ "author": "olfedias@microsoft.com",
30
+ "package": "@fluentui/react-utilities",
31
+ "commit": "d2eb57808a403b70845a732a62b55aa64d66b2a0",
32
+ "comment": "add useTriggerElement() hook"
33
+ },
34
+ {
35
+ "author": "bsunderhus@microsoft.com",
36
+ "package": "@fluentui/react-utilities",
37
+ "commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
38
+ "comment": "Removes nullRender from react-utilities"
39
+ },
40
+ {
41
+ "author": "olfedias@microsoft.com",
42
+ "package": "@fluentui/react-utilities",
43
+ "commit": "aa6cfd8ac825b5a280206808101de549a91094fc",
44
+ "comment": "update applyTriggerPropsToChildren() to return React.ReactElement or null"
45
+ },
46
+ {
47
+ "author": "behowell@microsoft.com",
48
+ "package": "@fluentui/react-utilities",
49
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
50
+ "comment": "Refactor component Slot typings"
51
+ },
52
+ {
53
+ "author": "Humberto.Morimoto@microsoft.com",
54
+ "package": "@fluentui/react-utilities",
55
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
56
+ "comment": "Adding ComponentSlotProps to allow ref to be passed in composite components."
57
+ },
58
+ {
59
+ "author": "Humberto.Morimoto@microsoft.com",
60
+ "package": "@fluentui/react-utilities",
61
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
62
+ "comment": "Renaming most *Shorthand* composition types to *SlotProps* so they better reflect what the types do."
63
+ },
64
+ {
65
+ "author": "lingfangao@hotmail.com",
66
+ "package": "@fluentui/react-utilities",
67
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
68
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
69
+ },
70
+ {
71
+ "author": "behowell@microsoft.com",
72
+ "package": "@fluentui/react-utilities",
73
+ "commit": "f30e7585a8d2abd9db06c4076f39a779008b0eca",
74
+ "comment": "Update trigger utilities to handle nested triggers"
75
+ },
76
+ {
77
+ "author": "elcraig@microsoft.com",
78
+ "package": "@fluentui/react-utilities",
79
+ "commit": "39ce3cbcf15ce2619649e1eddccf932736ceac07",
80
+ "comment": "[breaking] Remove useControllableValue hook (use useControllableState instead)"
81
+ },
16
82
  {
17
83
  "author": "beachball",
18
84
  "package": "@fluentui/react-utilities",
19
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly906d31cfa320211115.1",
20
- "commit": "05edacbae8d85aa6b3d4164f9cd7d1465b47f246"
85
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly96d9c9354420220210.1",
86
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
87
+ }
88
+ ],
89
+ "none": [
90
+ {
91
+ "author": "elcraig@microsoft.com",
92
+ "package": "@fluentui/react-utilities",
93
+ "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
94
+ "comment": "Update API file to version generated by typescript 4.3"
95
+ },
96
+ {
97
+ "author": "olfedias@microsoft.com",
98
+ "package": "@fluentui/react-utilities",
99
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
100
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
101
+ },
102
+ {
103
+ "author": "martinhochel@microsoft.com",
104
+ "package": "@fluentui/react-utilities",
105
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
106
+ "comment": "chore: use storybook runner for all vNext packages"
107
+ },
108
+ {
109
+ "author": "seanmonahan@microsoft.com",
110
+ "package": "@fluentui/react-utilities",
111
+ "commit": "6404bef16cebf1f67b9b80a9f6d5f605f9873df1",
112
+ "comment": "Update getSlots() docs."
113
+ },
114
+ {
115
+ "author": "lingfangao@hotmail.com",
116
+ "package": "@fluentui/react-utilities",
117
+ "commit": "a4e048a0e03ddd676670da516e3a6612b26ea500",
118
+ "comment": "chore: Remove enzyme from react-utilities tests"
119
+ }
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "date": "Thu, 25 Nov 2021 08:34:09 GMT",
125
+ "tag": "@fluentui/react-utilities_v9.0.0-beta.4",
126
+ "version": "9.0.0-beta.4",
127
+ "comments": {
128
+ "none": [
129
+ {
130
+ "author": "lingfangao@hotmail.com",
131
+ "package": "@fluentui/react-utilities",
132
+ "commit": "718e63006d8d07d24efab9c32942041963d78dc7",
133
+ "comment": "Migrate package to use solution style ts-configs"
134
+ }
135
+ ],
136
+ "prerelease": [
137
+ {
138
+ "author": "behowell@microsoft.com",
139
+ "package": "@fluentui/react-utilities",
140
+ "commit": "99adff5a9aab9086e8bc4737040654ab23f0febe",
141
+ "comment": "Update utility types to support specifying a primary slot other than root"
21
142
  }
22
143
  ]
23
144
  }
package/CHANGELOG.md CHANGED
@@ -1,18 +1,38 @@
1
1
  # Change Log - @fluentui/react-utilities
2
2
 
3
- This log was last generated on Mon, 15 Nov 2021 04:16:29 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 10 Feb 2022 04:16:37 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly906d31cfa320211115.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v0.0.0-nightly906d31cfa320211115.1)
7
+ ## [0.0.0-nightly96d9c9354420220210.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v0.0.0-nightly96d9c9354420220210.1)
8
8
 
9
- Mon, 15 Nov 2021 04:16:29 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-beta.3..@fluentui/react-utilities_v0.0.0-nightly906d31cfa320211115.1)
9
+ Thu, 10 Feb 2022 04:16:37 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-beta.4..@fluentui/react-utilities_v0.0.0-nightly96d9c9354420220210.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by email not defined)
15
- - Bump @fluentui/keyboard-keys to v0.0.0-nightly906d31cfa320211115.1 ([commit](https://github.com/microsoft/fluentui/commit/05edacbae8d85aa6b3d4164f9cd7d1465b47f246) by beachball)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by email not defined)
15
+ - Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
16
+ - getSlots: remove slotNames param, and infer from state.components instead ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
17
+ - add useTriggerElement() hook ([PR #21225](https://github.com/microsoft/fluentui/pull/21225) by olfedias@microsoft.com)
18
+ - Removes nullRender from react-utilities ([PR #21576](https://github.com/microsoft/fluentui/pull/21576) by bsunderhus@microsoft.com)
19
+ - update applyTriggerPropsToChildren() to return React.ReactElement or null ([PR #21609](https://github.com/microsoft/fluentui/pull/21609) by olfedias@microsoft.com)
20
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
21
+ - Adding ComponentSlotProps to allow ref to be passed in composite components. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
22
+ - Renaming most *Shorthand* composition types to *SlotProps* so they better reflect what the types do. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
23
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
24
+ - Update trigger utilities to handle nested triggers ([PR #21495](https://github.com/microsoft/fluentui/pull/21495) by behowell@microsoft.com)
25
+ - [breaking] Remove useControllableValue hook (use useControllableState instead) ([PR #20865](https://github.com/microsoft/fluentui/pull/20865) by elcraig@microsoft.com)
26
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
27
+
28
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-beta.4)
29
+
30
+ Thu, 25 Nov 2021 08:34:09 GMT
31
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-beta.3..@fluentui/react-utilities_v9.0.0-beta.4)
32
+
33
+ ### Changes
34
+
35
+ - Update utility types to support specifying a primary slot other than root ([PR #20617](https://github.com/microsoft/fluentui/pull/20617) by behowell@microsoft.com)
16
36
 
17
37
  ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-beta.3)
18
38