@fluentui/react-divider 9.2.45 → 9.2.46
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +29 -2
- package/CHANGELOG.md +14 -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 +3 -3
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,34 @@
|
|
2
2
|
"name": "@fluentui/react-divider",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Wed, 18 Oct 2023 17:47:33 GMT",
|
6
|
+
"tag": "@fluentui/react-divider_v9.2.46",
|
7
|
+
"version": "9.2.46",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "bernardo.sunderhus@gmail.com",
|
12
|
+
"package": "@fluentui/react-divider",
|
13
|
+
"commit": "967882a55a7333effea42e4c24a64e8547309116",
|
14
|
+
"comment": "chore: migrate from getNativeElementProps to getIntrinsicElementProps"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-divider",
|
19
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.18",
|
20
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-divider",
|
25
|
+
"comment": "Bump @fluentui/react-utilities to v9.15.1",
|
26
|
+
"commit": "c0d3065982e1646c54ba00c1d524248b792dbcad"
|
27
|
+
}
|
28
|
+
]
|
29
|
+
}
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"date": "Thu, 12 Oct 2023 14:55:44 GMT",
|
6
33
|
"tag": "@fluentui/react-divider_v9.2.45",
|
7
34
|
"version": "9.2.45",
|
8
35
|
"comments": {
|
@@ -11,7 +38,7 @@
|
|
11
38
|
"author": "beachball",
|
12
39
|
"package": "@fluentui/react-divider",
|
13
40
|
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.17",
|
14
|
-
"commit": "
|
41
|
+
"commit": "8178c3cae60005bc21137aa1f3e766e18cdb4a30"
|
15
42
|
}
|
16
43
|
]
|
17
44
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,17 +1,28 @@
|
|
1
1
|
# Change Log - @fluentui/react-divider
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 18 Oct 2023 17:47:33 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.2.46](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.2.46)
|
8
|
+
|
9
|
+
Wed, 18 Oct 2023 17:47:33 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.2.45..@fluentui/react-divider_v9.2.46)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- chore: migrate from getNativeElementProps to getIntrinsicElementProps ([PR #29499](https://github.com/microsoft/fluentui/pull/29499) by bernardo.sunderhus@gmail.com)
|
15
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.18 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
16
|
+
- Bump @fluentui/react-utilities to v9.15.1 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
|
17
|
+
|
7
18
|
## [9.2.45](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.2.45)
|
8
19
|
|
9
|
-
Thu, 12 Oct 2023 14:
|
20
|
+
Thu, 12 Oct 2023 14:55:44 GMT
|
10
21
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-divider_v9.2.44..@fluentui/react-divider_v9.2.45)
|
11
22
|
|
12
23
|
### Patches
|
13
24
|
|
14
|
-
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #
|
25
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #29513](https://github.com/microsoft/fluentui/pull/29513) by beachball)
|
15
26
|
|
16
27
|
## [9.2.44](https://github.com/microsoft/fluentui/tree/@fluentui/react-divider_v9.2.44)
|
17
28
|
|
@@ -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.46",
|
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.
|
36
|
+
"@fluentui/react-jsx-runtime": "^9.0.18",
|
37
37
|
"@fluentui/react-shared-contexts": "^9.10.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
|
},
|