@fluentui/react-image 9.1.20 → 9.1.22
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 +61 -1
- package/CHANGELOG.md +25 -2
- package/lib/components/Image/renderImage.js +3 -3
- package/lib/components/Image/renderImage.js.map +1 -1
- package/lib/components/Image/useImage.js +4 -2
- package/lib/components/Image/useImage.js.map +1 -1
- package/lib-commonjs/components/Image/renderImage.js +2 -2
- package/lib-commonjs/components/Image/renderImage.js.map +1 -1
- package/lib-commonjs/components/Image/useImage.js +3 -1
- package/lib-commonjs/components/Image/useImage.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,67 @@
|
|
|
2
2
|
"name": "@fluentui/react-image",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Fri,
|
|
5
|
+
"date": "Fri, 11 Aug 2023 12:10:20 GMT",
|
|
6
|
+
"tag": "@fluentui/react-image_v9.1.22",
|
|
7
|
+
"version": "9.1.22",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui/react-image",
|
|
13
|
+
"comment": "Bump @fluentui/react-utilities to v9.11.1",
|
|
14
|
+
"commit": "a77bcda1628e8b20b113d0237317efd7ebbc5294"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui/react-image",
|
|
19
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.15",
|
|
20
|
+
"commit": "a77bcda1628e8b20b113d0237317efd7ebbc5294"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Wed, 09 Aug 2023 13:16:56 GMT",
|
|
27
|
+
"tag": "@fluentui/react-image_v9.1.21",
|
|
28
|
+
"version": "9.1.21",
|
|
29
|
+
"comments": {
|
|
30
|
+
"patch": [
|
|
31
|
+
{
|
|
32
|
+
"author": "bernardo.sunderhus@gmail.com",
|
|
33
|
+
"package": "@fluentui/react-image",
|
|
34
|
+
"commit": "d5ece238df797e84a59affc6162b0fa5cc46649d",
|
|
35
|
+
"comment": "chore(cxe-prg): migrate to new slot API"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "olfedias@microsoft.com",
|
|
39
|
+
"package": "@fluentui/react-image",
|
|
40
|
+
"commit": "b090c0339983847a62b9dc6187d08dc8c4b1d55f",
|
|
41
|
+
"comment": "chore: Update Griffel to latest version"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@fluentui/react-image",
|
|
46
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.7.2",
|
|
47
|
+
"commit": "9509e950254d838cdfe3718a775ba5c78cb8f11a"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui/react-image",
|
|
52
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.14",
|
|
53
|
+
"commit": "9509e950254d838cdfe3718a775ba5c78cb8f11a"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@fluentui/react-image",
|
|
58
|
+
"comment": "Bump @fluentui/react-theme to v9.1.11",
|
|
59
|
+
"commit": "9509e950254d838cdfe3718a775ba5c78cb8f11a"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": "Fri, 04 Aug 2023 08:52:58 GMT",
|
|
6
66
|
"tag": "@fluentui/react-image_v9.1.20",
|
|
7
67
|
"version": "9.1.20",
|
|
8
68
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-image
|
|
2
2
|
|
|
3
|
-
This log was last generated on Fri,
|
|
3
|
+
This log was last generated on Fri, 11 Aug 2023 12:10:20 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.1.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-image_v9.1.22)
|
|
8
|
+
|
|
9
|
+
Fri, 11 Aug 2023 12:10:20 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-image_v9.1.21..@fluentui/react-image_v9.1.22)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Bump @fluentui/react-utilities to v9.11.1 ([PR #28808](https://github.com/microsoft/fluentui/pull/28808) by beachball)
|
|
15
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.15 ([PR #28808](https://github.com/microsoft/fluentui/pull/28808) by beachball)
|
|
16
|
+
|
|
17
|
+
## [9.1.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-image_v9.1.21)
|
|
18
|
+
|
|
19
|
+
Wed, 09 Aug 2023 13:16:56 GMT
|
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-image_v9.1.20..@fluentui/react-image_v9.1.21)
|
|
21
|
+
|
|
22
|
+
### Patches
|
|
23
|
+
|
|
24
|
+
- chore(cxe-prg): migrate to new slot API ([PR #28752](https://github.com/microsoft/fluentui/pull/28752) by bernardo.sunderhus@gmail.com)
|
|
25
|
+
- chore: Update Griffel to latest version ([PR #28684](https://github.com/microsoft/fluentui/pull/28684) by olfedias@microsoft.com)
|
|
26
|
+
- Bump @fluentui/react-shared-contexts to v9.7.2 ([PR #28775](https://github.com/microsoft/fluentui/pull/28775) by beachball)
|
|
27
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.14 ([PR #28775](https://github.com/microsoft/fluentui/pull/28775) by beachball)
|
|
28
|
+
- Bump @fluentui/react-theme to v9.1.11 ([PR #28775](https://github.com/microsoft/fluentui/pull/28775) by beachball)
|
|
29
|
+
|
|
7
30
|
## [9.1.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-image_v9.1.20)
|
|
8
31
|
|
|
9
|
-
Fri, 04 Aug 2023 08:
|
|
32
|
+
Fri, 04 Aug 2023 08:52:58 GMT
|
|
10
33
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-image_v9.1.19..@fluentui/react-image_v9.1.20)
|
|
11
34
|
|
|
12
35
|
### Patches
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { assertSlots } from '@fluentui/react-utilities';
|
|
3
3
|
/**
|
|
4
4
|
* Define the render function.
|
|
5
5
|
* Given the state of an image, renders it.
|
|
6
6
|
*/ export const renderImage_unstable = (state)=>{
|
|
7
|
-
|
|
8
|
-
return /*#__PURE__*/ createElement(
|
|
7
|
+
assertSlots(state);
|
|
8
|
+
return /*#__PURE__*/ createElement(state.root, null);
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["renderImage.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport {
|
|
1
|
+
{"version":3,"sources":["renderImage.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { ImageSlots, ImageState } from './Image.types';\n\n/**\n * Define the render function.\n * Given the state of an image, renders it.\n */\nexport const renderImage_unstable = (state: ImageState) => {\n assertSlots<ImageSlots>(state);\n\n return <state.root />;\n};\n"],"names":["createElement","assertSlots","renderImage_unstable","state","root"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAE5D,SAASC,WAAW,QAAQ,4BAA4B;AAGxD;;;CAGC,GACD,OAAO,MAAMC,uBAAuB,CAACC,QAAsB;IACzDF,YAAwBE;IAExB,qBAAO,AAdT,cAcUA,MAAMC,IAAI;AACpB,EAAE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { getNativeElementProps } from '@fluentui/react-utilities';
|
|
2
|
+
import { getNativeElementProps, 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,9 +13,11 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
|
|
|
13
13
|
components: {
|
|
14
14
|
root: 'img'
|
|
15
15
|
},
|
|
16
|
-
root: getNativeElementProps('img', {
|
|
16
|
+
root: slot.always(getNativeElementProps('img', {
|
|
17
17
|
ref,
|
|
18
18
|
...props
|
|
19
|
+
}), {
|
|
20
|
+
elementType: 'img'
|
|
19
21
|
})
|
|
20
22
|
};
|
|
21
23
|
return state;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useImage.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } 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: getNativeElementProps('img', {\n
|
|
1
|
+
{"version":3,"sources":["useImage.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, 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 getNativeElementProps<ImageProps>('img', {\n ref,\n ...props,\n }),\n { elementType: 'img' },\n ),\n };\n\n return state;\n};\n"],"names":["React","getNativeElementProps","slot","useImage_unstable","props","ref","bordered","fit","block","shape","shadow","state","components","root","always","elementType"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,qBAAqB,EAAEC,IAAI,QAAQ,4BAA4B;AAGxE;;CAEC,GACD,OAAO,MAAMC,oBAAoB,CAACC,OAAmBC,MAAiD;IACpG,MAAM,EAAEC,UAAW,KAAK,CAAA,EAAEC,KAAM,UAAS,EAAEC,OAAQ,KAAK,CAAA,EAAEC,OAAQ,SAAQ,EAAEC,QAAS,KAAK,CAAA,EAAE,GAAGN;IAE/F,MAAMO,QAAoB;QACxBL;QACAC;QACAC;QACAC;QACAC;QACAE,YAAY;YACVC,MAAM;QACR;QACAA,MAAMX,KAAKY,MAAM,CACfb,sBAAkC,OAAO;YACvCI;YACA,GAAGD,KAAK;QACV,IACA;YAAEW,aAAa;QAAM;IAEzB;IAEA,OAAOJ;AACT,EAAE"}
|
|
@@ -9,6 +9,6 @@ Object.defineProperty(exports, "renderImage_unstable", {
|
|
|
9
9
|
const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
|
|
10
10
|
const _reactUtilities = require("@fluentui/react-utilities");
|
|
11
11
|
const renderImage_unstable = (state)=>{
|
|
12
|
-
|
|
13
|
-
return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(
|
|
12
|
+
(0, _reactUtilities.assertSlots)(state);
|
|
13
|
+
return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.root, null);
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["renderImage.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport {
|
|
1
|
+
{"version":3,"sources":["renderImage.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Define the render function.\n * Given the state of an image, renders it.\n */ export const renderImage_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ createElement(state.root, null);\n};\n"],"names":["renderImage_unstable","state","assertSlots","createElement","root"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAKjCA;;aAAAA;;iCALkE;gCACvD;AAIjB,MAAMA,uBAAuB,CAACC,QAAQ;IAC7CC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,8BAAa,EAACF,MAAMG,IAAI,EAAE,IAAI;AACvD"}
|
|
@@ -20,9 +20,11 @@ const useImage_unstable = (props, ref)=>{
|
|
|
20
20
|
components: {
|
|
21
21
|
root: 'img'
|
|
22
22
|
},
|
|
23
|
-
root: (0, _reactUtilities.getNativeElementProps)('img', {
|
|
23
|
+
root: _reactUtilities.slot.always((0, _reactUtilities.getNativeElementProps)('img', {
|
|
24
24
|
ref,
|
|
25
25
|
...props
|
|
26
|
+
}), {
|
|
27
|
+
elementType: 'img'
|
|
26
28
|
})
|
|
27
29
|
};
|
|
28
30
|
return state;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useImage.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } 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: getNativeElementProps('img', {\n ref,\n ...props\n })\n };\n return state;\n};\n"],"names":["useImage_unstable","props","ref","bordered","fit","block","shape","shadow","state","components","root","getNativeElementProps"],"mappings":";;;;+BAIiBA;;aAAAA;;;6DAJM;
|
|
1
|
+
{"version":3,"sources":["useImage.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, 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(getNativeElementProps('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","getNativeElementProps","elementType"],"mappings":";;;;+BAIiBA;;aAAAA;;;6DAJM;gCACqB;AAGjC,MAAMA,oBAAoB,CAACC,OAAOC,MAAM;IAC/C,MAAM,EAAEC,UAAU,KAAK,CAAA,EAAGC,KAAK,UAAS,EAAGC,OAAO,KAAK,CAAA,EAAGC,OAAO,SAAQ,EAAGC,QAAQ,KAAK,CAAA,EAAG,GAAGN;IAC/F,MAAMO,QAAQ;QACVL;QACAC;QACAC;QACAC;QACAC;QACAE,YAAY;YACRC,MAAM;QACV;QACAA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAAC,OAAO;YAC3CX;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.22",
|
|
4
4
|
"description": "Fluent UI React Image component.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@fluentui/scripts-tasks": "*"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@fluentui/react-shared-contexts": "^9.7.
|
|
37
|
-
"@fluentui/react-utilities": "^9.11.
|
|
38
|
-
"@fluentui/react-jsx-runtime": "9.0.0-alpha.
|
|
39
|
-
"@fluentui/react-theme": "^9.1.
|
|
40
|
-
"@griffel/react": "^1.5.
|
|
36
|
+
"@fluentui/react-shared-contexts": "^9.7.2",
|
|
37
|
+
"@fluentui/react-utilities": "^9.11.1",
|
|
38
|
+
"@fluentui/react-jsx-runtime": "9.0.0-alpha.15",
|
|
39
|
+
"@fluentui/react-theme": "^9.1.11",
|
|
40
|
+
"@griffel/react": "^1.5.14",
|
|
41
41
|
"@swc/helpers": "^0.4.14"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|