@fluentui/react-image 9.1.41 → 9.1.42
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,28 @@
|
|
|
2
2
|
"name": "@fluentui/react-image",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 12 Oct 2023 14:52:33 GMT",
|
|
6
|
+
"tag": "@fluentui/react-image_v9.1.42",
|
|
7
|
+
"version": "9.1.42",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "bernardo.sunderhus@gmail.com",
|
|
12
|
+
"package": "@fluentui/react-image",
|
|
13
|
+
"commit": "355fd5631311dc163f32ba79655a132376089f95",
|
|
14
|
+
"comment": "chore: migrate from getNativeElementProps for getIntrinsicElementProps"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui/react-image",
|
|
19
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.17",
|
|
20
|
+
"commit": "1a52f5b27e2f71f7257c470bc9c7552ea5e07867"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Wed, 11 Oct 2023 13:54:26 GMT",
|
|
6
27
|
"tag": "@fluentui/react-image_v9.1.41",
|
|
7
28
|
"version": "9.1.41",
|
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-image
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 12 Oct 2023 14:52:33 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.1.42](https://github.com/microsoft/fluentui/tree/@fluentui/react-image_v9.1.42)
|
|
8
|
+
|
|
9
|
+
Thu, 12 Oct 2023 14:52:33 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-image_v9.1.41..@fluentui/react-image_v9.1.42)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- chore: migrate from getNativeElementProps for getIntrinsicElementProps ([PR #29498](https://github.com/microsoft/fluentui/pull/29498) by bernardo.sunderhus@gmail.com)
|
|
15
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #29488](https://github.com/microsoft/fluentui/pull/29488) by beachball)
|
|
16
|
+
|
|
7
17
|
## [9.1.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-image_v9.1.41)
|
|
8
18
|
|
|
9
|
-
Wed, 11 Oct 2023 13:
|
|
19
|
+
Wed, 11 Oct 2023 13:54:26 GMT
|
|
10
20
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-image_v9.1.40..@fluentui/react-image_v9.1.41)
|
|
11
21
|
|
|
12
22
|
### Patches
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';
|
|
3
3
|
/**
|
|
4
4
|
* Given user props, returns state and render function for an Image.
|
|
5
5
|
*/ export const useImage_unstable = (props, ref)=>{
|
|
@@ -13,7 +13,7 @@ import { getNativeElementProps, slot } from '@fluentui/react-utilities';
|
|
|
13
13
|
components: {
|
|
14
14
|
root: 'img'
|
|
15
15
|
},
|
|
16
|
-
root: slot.always(
|
|
16
|
+
root: slot.always(getIntrinsicElementProps('img', {
|
|
17
17
|
ref,
|
|
18
18
|
...props
|
|
19
19
|
}), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useImage.ts"],"sourcesContent":["import * as React from 'react';\nimport {
|
|
1
|
+
{"version":3,"sources":["useImage.ts"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { ImageProps, ImageState } from './Image.types';\n\n/**\n * Given user props, returns state and render function for an Image.\n */\nexport const useImage_unstable = (props: ImageProps, ref: React.Ref<HTMLImageElement>): ImageState => {\n const { bordered = false, fit = 'default', block = false, shape = 'square', shadow = false } = props;\n\n const state: ImageState = {\n bordered,\n fit,\n block,\n shape,\n shadow,\n components: {\n root: 'img',\n },\n root: slot.always(\n getIntrinsicElementProps('img', {\n ref,\n ...props,\n }),\n { elementType: 'img' },\n ),\n };\n\n return state;\n};\n"],"names":["React","getIntrinsicElementProps","slot","useImage_unstable","props","ref","bordered","fit","block","shape","shadow","state","components","root","always","elementType"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,wBAAwB,EAAEC,IAAI,QAAQ,4BAA4B;AAG3E;;CAEC,GACD,OAAO,MAAMC,oBAAoB,CAACC,OAAmBC;IACnD,MAAM,EAAEC,WAAW,KAAK,EAAEC,MAAM,SAAS,EAAEC,QAAQ,KAAK,EAAEC,QAAQ,QAAQ,EAAEC,SAAS,KAAK,EAAE,GAAGN;IAE/F,MAAMO,QAAoB;QACxBL;QACAC;QACAC;QACAC;QACAC;QACAE,YAAY;YACVC,MAAM;QACR;QACAA,MAAMX,KAAKY,MAAM,CACfb,yBAAyB,OAAO;YAC9BI;YACA,GAAGD,KAAK;QACV,IACA;YAAEW,aAAa;QAAM;IAEzB;IAEA,OAAOJ;AACT,EAAE"}
|
|
@@ -22,7 +22,7 @@ const useImage_unstable = (props, ref)=>{
|
|
|
22
22
|
components: {
|
|
23
23
|
root: 'img'
|
|
24
24
|
},
|
|
25
|
-
root: _reactutilities.slot.always((0, _reactutilities.
|
|
25
|
+
root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('img', {
|
|
26
26
|
ref,
|
|
27
27
|
...props
|
|
28
28
|
}), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useImage.js"],"sourcesContent":["import * as React from 'react';\nimport {
|
|
1
|
+
{"version":3,"sources":["useImage.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Given user props, returns state and render function for an Image.\n */ export const useImage_unstable = (props, ref)=>{\n const { bordered = false, fit = 'default', block = false, shape = 'square', shadow = false } = props;\n const state = {\n bordered,\n fit,\n block,\n shape,\n shadow,\n components: {\n root: 'img'\n },\n root: slot.always(getIntrinsicElementProps('img', {\n ref,\n ...props\n }), {\n elementType: 'img'\n })\n };\n return state;\n};\n"],"names":["useImage_unstable","props","ref","bordered","fit","block","shape","shadow","state","components","root","slot","always","getIntrinsicElementProps","elementType"],"mappings":";;;;+BAIiBA;;;eAAAA;;;;iEAJM;gCACwB;AAGpC,MAAMA,oBAAoB,CAACC,OAAOC;IACzC,MAAM,EAAEC,WAAW,KAAK,EAAEC,MAAM,SAAS,EAAEC,QAAQ,KAAK,EAAEC,QAAQ,QAAQ,EAAEC,SAAS,KAAK,EAAE,GAAGN;IAC/F,MAAMO,QAAQ;QACVL;QACAC;QACAC;QACAC;QACAC;QACAE,YAAY;YACRC,MAAM;QACV;QACAA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAO;YAC9CX;YACA,GAAGD,KAAK;QACZ,IAAI;YACAa,aAAa;QACjB;IACJ;IACA,OAAON;AACX"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-image",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.42",
|
|
4
4
|
"description": "Fluent UI React Image component.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@fluentui/react-shared-contexts": "^9.10.0",
|
|
37
37
|
"@fluentui/react-utilities": "^9.15.0",
|
|
38
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
|
38
|
+
"@fluentui/react-jsx-runtime": "^9.0.17",
|
|
39
39
|
"@fluentui/react-theme": "^9.1.14",
|
|
40
40
|
"@griffel/react": "^1.5.14",
|
|
41
41
|
"@swc/helpers": "^0.5.1"
|