@fluentui/react-divider 9.2.45 → 9.2.47
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 +44 -2
- package/CHANGELOG.md +23 -3
- package/lib/components/Divider/useDivider.js +6 -3
- package/lib/components/Divider/useDivider.js.map +1 -1
- package/lib-commonjs/components/Divider/useDivider.js +5 -2
- package/lib-commonjs/components/Divider/useDivider.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,49 @@
|
|
|
2
2
|
"name": "@fluentui/react-divider",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 28 Oct 2023 23:32:06 GMT",
|
|
6
|
+
"tag": "@fluentui/react-divider_v9.2.47",
|
|
7
|
+
"version": "9.2.47",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui/react-divider",
|
|
13
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.11.0",
|
|
14
|
+
"commit": "555b0fae3ec7f052e765557ae243c58000514f92"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 18 Oct 2023 17:54:03 GMT",
|
|
21
|
+
"tag": "@fluentui/react-divider_v9.2.46",
|
|
22
|
+
"version": "9.2.46",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "bernardo.sunderhus@gmail.com",
|
|
27
|
+
"package": "@fluentui/react-divider",
|
|
28
|
+
"commit": "967882a55a7333effea42e4c24a64e8547309116",
|
|
29
|
+
"comment": "chore: migrate from getNativeElementProps to getIntrinsicElementProps"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@fluentui/react-divider",
|
|
34
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.18",
|
|
35
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@fluentui/react-divider",
|
|
40
|
+
"comment": "Bump @fluentui/react-utilities to v9.15.1",
|
|
41
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"date": "Thu, 12 Oct 2023 14:55:44 GMT",
|
|
6
48
|
"tag": "@fluentui/react-divider_v9.2.45",
|
|
7
49
|
"version": "9.2.45",
|
|
8
50
|
"comments": {
|
|
@@ -11,7 +53,7 @@
|
|
|
11
53
|
"author": "beachball",
|
|
12
54
|
"package": "@fluentui/react-divider",
|
|
13
55
|
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.17",
|
|
14
|
-
"commit": "
|
|
56
|
+
"commit": "8178c3cae60005bc21137aa1f3e766e18cdb4a30"
|
|
15
57
|
}
|
|
16
58
|
]
|
|
17
59
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,37 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-divider
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 28 Oct 2023 23:32:06 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.2.47](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.2.47)
|
|
8
|
+
|
|
9
|
+
Sat, 28 Oct 2023 23:32:06 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.2.46..@fluentui/react-divider_v9.2.47)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Bump @fluentui/react-shared-contexts to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/555b0fae3ec7f052e765557ae243c58000514f92) by beachball)
|
|
15
|
+
|
|
16
|
+
## [9.2.46](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.2.46)
|
|
17
|
+
|
|
18
|
+
Wed, 18 Oct 2023 17:54:03 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.2.45..@fluentui/react-divider_v9.2.46)
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- chore: migrate from getNativeElementProps to getIntrinsicElementProps ([PR #29499](https://github.com/microsoft/fluentui/pull/29499) by bernardo.sunderhus@gmail.com)
|
|
24
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.18 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
|
25
|
+
- Bump @fluentui/react-utilities to v9.15.1 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
|
26
|
+
|
|
7
27
|
## [9.2.45](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.2.45)
|
|
8
28
|
|
|
9
|
-
Thu, 12 Oct 2023 14:
|
|
29
|
+
Thu, 12 Oct 2023 14:55:44 GMT
|
|
10
30
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.2.44..@fluentui/react-divider_v9.2.45)
|
|
11
31
|
|
|
12
32
|
### Patches
|
|
13
33
|
|
|
14
|
-
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #
|
|
34
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #29513](https://github.com/microsoft/fluentui/pull/29513) by beachball)
|
|
15
35
|
|
|
16
36
|
## [9.2.44](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.2.44)
|
|
17
37
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { getIntrinsicElementProps, useId, slot } from '@fluentui/react-utilities';
|
|
3
3
|
/**
|
|
4
4
|
* Returns the props and state required to render the component
|
|
5
5
|
* @param props - User-provided props to the Divider component.
|
|
@@ -18,12 +18,15 @@ import { getNativeElementProps, useId, slot } from '@fluentui/react-utilities';
|
|
|
18
18
|
root: 'div',
|
|
19
19
|
wrapper: 'div'
|
|
20
20
|
},
|
|
21
|
-
root: slot.always(
|
|
21
|
+
root: slot.always(getIntrinsicElementProps('div', {
|
|
22
22
|
role: 'separator',
|
|
23
23
|
'aria-orientation': vertical ? 'vertical' : 'horizontal',
|
|
24
24
|
'aria-labelledby': props.children ? dividerId : undefined,
|
|
25
25
|
...props,
|
|
26
|
-
|
|
26
|
+
// FIXME:
|
|
27
|
+
// `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`
|
|
28
|
+
// but since it would be a breaking change to fix it, we are casting ref to it's proper type
|
|
29
|
+
ref: ref
|
|
27
30
|
}), {
|
|
28
31
|
elementType: 'div'
|
|
29
32
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDivider.ts"],"sourcesContent":["import * as React from 'react';\nimport {
|
|
1
|
+
{"version":3,"sources":["useDivider.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, useId, slot } from '@fluentui/react-utilities';\nimport type { DividerProps, DividerState } from './Divider.types';\n\n/**\n * Returns the props and state required to render the component\n * @param props - User-provided props to the Divider component.\n * @param ref - User-provided ref to be passed to the Divider component.\n */\nexport const useDivider_unstable = (props: DividerProps, ref: React.Ref<HTMLElement>): DividerState => {\n const { alignContent = 'center', appearance = 'default', inset = false, vertical = false, wrapper } = props;\n const dividerId = useId('divider-');\n\n return {\n // Props passed at the top-level\n alignContent,\n appearance,\n inset,\n vertical,\n\n // Slots definition\n components: {\n root: 'div',\n wrapper: 'div',\n },\n\n root: slot.always(\n getIntrinsicElementProps('div', {\n role: 'separator',\n 'aria-orientation': vertical ? 'vertical' : 'horizontal',\n 'aria-labelledby': props.children ? dividerId : undefined,\n ...props,\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: ref as React.Ref<HTMLDivElement>,\n } as const),\n { elementType: 'div' },\n ),\n wrapper: slot.always(wrapper, {\n defaultProps: {\n id: dividerId,\n children: props.children,\n },\n elementType: 'div',\n }),\n };\n};\n"],"names":["React","getIntrinsicElementProps","useId","slot","useDivider_unstable","props","ref","alignContent","appearance","inset","vertical","wrapper","dividerId","components","root","always","role","children","undefined","elementType","defaultProps","id"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,KAAK,EAAEC,IAAI,QAAQ,4BAA4B;AAGlF;;;;CAIC,GACD,OAAO,MAAMC,sBAAsB,CAACC,OAAqBC;IACvD,MAAM,EAAEC,eAAe,QAAQ,EAAEC,aAAa,SAAS,EAAEC,QAAQ,KAAK,EAAEC,WAAW,KAAK,EAAEC,OAAO,EAAE,GAAGN;IACtG,MAAMO,YAAYV,MAAM;IAExB,OAAO;QACL,gCAAgC;QAChCK;QACAC;QACAC;QACAC;QAEA,mBAAmB;QACnBG,YAAY;YACVC,MAAM;YACNH,SAAS;QACX;QAEAG,MAAMX,KAAKY,MAAM,CACfd,yBAAyB,OAAO;YAC9Be,MAAM;YACN,oBAAoBN,WAAW,aAAa;YAC5C,mBAAmBL,MAAMY,QAAQ,GAAGL,YAAYM;YAChD,GAAGb,KAAK;YACR,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FC,KAAKA;QACP,IACA;YAAEa,aAAa;QAAM;QAEvBR,SAASR,KAAKY,MAAM,CAACJ,SAAS;YAC5BS,cAAc;gBACZC,IAAIT;gBACJK,UAAUZ,MAAMY,QAAQ;YAC1B;YACAE,aAAa;QACf;IACF;AACF,EAAE"}
|
|
@@ -25,12 +25,15 @@ const useDivider_unstable = (props, ref)=>{
|
|
|
25
25
|
root: 'div',
|
|
26
26
|
wrapper: 'div'
|
|
27
27
|
},
|
|
28
|
-
root: _reactutilities.slot.always((0, _reactutilities.
|
|
28
|
+
root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', {
|
|
29
29
|
role: 'separator',
|
|
30
30
|
'aria-orientation': vertical ? 'vertical' : 'horizontal',
|
|
31
31
|
'aria-labelledby': props.children ? dividerId : undefined,
|
|
32
32
|
...props,
|
|
33
|
-
|
|
33
|
+
// FIXME:
|
|
34
|
+
// `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`
|
|
35
|
+
// but since it would be a breaking change to fix it, we are casting ref to it's proper type
|
|
36
|
+
ref: ref
|
|
34
37
|
}), {
|
|
35
38
|
elementType: 'div'
|
|
36
39
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDivider.js"],"sourcesContent":["import * as React from 'react';\nimport {
|
|
1
|
+
{"version":3,"sources":["useDivider.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, useId, slot } from '@fluentui/react-utilities';\n/**\n * Returns the props and state required to render the component\n * @param props - User-provided props to the Divider component.\n * @param ref - User-provided ref to be passed to the Divider component.\n */ export const useDivider_unstable = (props, ref)=>{\n const { alignContent = 'center', appearance = 'default', inset = false, vertical = false, wrapper } = props;\n const dividerId = useId('divider-');\n return {\n // Props passed at the top-level\n alignContent,\n appearance,\n inset,\n vertical,\n // Slots definition\n components: {\n root: 'div',\n wrapper: 'div'\n },\n root: slot.always(getIntrinsicElementProps('div', {\n role: 'separator',\n 'aria-orientation': vertical ? 'vertical' : 'horizontal',\n 'aria-labelledby': props.children ? dividerId : undefined,\n ...props,\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: ref\n }), {\n elementType: 'div'\n }),\n wrapper: slot.always(wrapper, {\n defaultProps: {\n id: dividerId,\n children: props.children\n },\n elementType: 'div'\n })\n };\n};\n"],"names":["useDivider_unstable","props","ref","alignContent","appearance","inset","vertical","wrapper","dividerId","useId","components","root","slot","always","getIntrinsicElementProps","role","children","undefined","elementType","defaultProps","id"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;gCAC+B;AAK3C,MAAMA,sBAAsB,CAACC,OAAOC;IAC3C,MAAM,EAAEC,eAAe,QAAQ,EAAEC,aAAa,SAAS,EAAEC,QAAQ,KAAK,EAAEC,WAAW,KAAK,EAAEC,OAAO,EAAE,GAAGN;IACtG,MAAMO,YAAYC,IAAAA,qBAAK,EAAC;IACxB,OAAO;QACH,gCAAgC;QAChCN;QACAC;QACAC;QACAC;QACA,mBAAmB;QACnBI,YAAY;YACRC,MAAM;YACNJ,SAAS;QACb;QACAI,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAO;YAC9CC,MAAM;YACN,oBAAoBT,WAAW,aAAa;YAC5C,mBAAmBL,MAAMe,QAAQ,GAAGR,YAAYS;YAChD,GAAGhB,KAAK;YACR,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FC,KAAKA;QACT,IAAI;YACAgB,aAAa;QACjB;QACAX,SAASK,oBAAI,CAACC,MAAM,CAACN,SAAS;YAC1BY,cAAc;gBACVC,IAAIZ;gBACJQ,UAAUf,MAAMe,QAAQ;YAC5B;YACAE,aAAa;QACjB;IACJ;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-divider",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.47",
|
|
4
4
|
"description": "Fluent UI component to visually separate content.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"@fluentui/scripts-tasks": "*"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
|
37
|
-
"@fluentui/react-shared-contexts": "^9.
|
|
36
|
+
"@fluentui/react-jsx-runtime": "^9.0.18",
|
|
37
|
+
"@fluentui/react-shared-contexts": "^9.11.0",
|
|
38
38
|
"@fluentui/react-theme": "^9.1.14",
|
|
39
|
-
"@fluentui/react-utilities": "^9.15.
|
|
39
|
+
"@fluentui/react-utilities": "^9.15.1",
|
|
40
40
|
"@griffel/react": "^1.5.14",
|
|
41
41
|
"@swc/helpers": "^0.5.1"
|
|
42
42
|
},
|