@fluentui/react-file-type-icons
Advanced tools
Comparing version 8.8.19 to 8.8.20
# Change Log - @fluentui/react-file-type-icons | ||
This log was last generated on Tue, 30 May 2023 07:33:28 GMT and should not be manually modified. | ||
This log was last generated on Wed, 31 May 2023 07:36:01 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [8.8.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-file-type-icons_v8.8.20) | ||
Wed, 31 May 2023 07:36:01 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-file-type-icons_v8.8.19..@fluentui/react-file-type-icons_v8.8.20) | ||
### Patches | ||
- Bump @fluentui/set-version to v8.2.11 ([commit](https://github.com/microsoft/fluentui/commit/dd8c30d9b97f68eb332366fc0e69775a88775319) by beachball) | ||
- Bump @fluentui/style-utilities to v8.9.13 ([commit](https://github.com/microsoft/fluentui/commit/dd8c30d9b97f68eb332366fc0e69775a88775319) by beachball) | ||
## [8.8.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-file-type-icons_v8.8.19) | ||
Tue, 30 May 2023 07:33:28 GMT | ||
Tue, 30 May 2023 07:36:09 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-file-type-icons_v8.8.18..@fluentui/react-file-type-icons_v8.8.19) | ||
@@ -11,0 +21,0 @@ |
@@ -15,4 +15,4 @@ define(["require", "exports", "./initializeFileTypeIcons", "./getFileTypeIconProps"], function (require, exports, initializeFileTypeIcons_1, getFileTypeIconProps_1) { | ||
var extension = options.extension, _a = options.size, size = _a === void 0 ? getFileTypeIconProps_1.DEFAULT_ICON_SIZE : _a, type = options.type, imageFileType = options.imageFileType; | ||
var baseIconName = getFileTypeIconProps_1.getFileTypeIconNameFromExtensionOrType(extension, type); // eg: docx | ||
var baseSuffix = getFileTypeIconProps_1.getFileTypeIconSuffix(size, imageFileType); // eg: 96_3x_svg or 96_png | ||
var baseIconName = (0, getFileTypeIconProps_1.getFileTypeIconNameFromExtensionOrType)(extension, type); // eg: docx | ||
var baseSuffix = (0, getFileTypeIconProps_1.getFileTypeIconSuffix)(size, imageFileType); // eg: 96_3x_svg or 96_png | ||
var suffixArray = baseSuffix.split('_'); // eg: ['96', '3x', 'svg'] | ||
@@ -22,9 +22,9 @@ var src; | ||
/** suffix is of type 96_3x_svg - it has a pixel ratio > 1*/ | ||
src = "" + baseUrl + size + "_" + suffixArray[1] + "/" + baseIconName + "." + suffixArray[2]; | ||
return "<img src=\"" + src + "\" height=\"100%\" width=\"100%\" />"; | ||
src = "".concat(baseUrl).concat(size, "_").concat(suffixArray[1], "/").concat(baseIconName, ".").concat(suffixArray[2]); | ||
return "<img src=\"".concat(src, "\" height=\"100%\" width=\"100%\" />"); | ||
} | ||
else if (suffixArray.length === 2) { | ||
/** suffix is of type 96_svg - it has a pixel ratio of 1*/ | ||
src = "" + baseUrl + size + "/" + baseIconName + "." + suffixArray[1]; | ||
return "<img src=\"" + src + "\" alt=\"\" />"; | ||
src = "".concat(baseUrl).concat(size, "/").concat(baseIconName, ".").concat(suffixArray[1]); | ||
return "<img src=\"".concat(src, "\" alt=\"\" />"); | ||
} | ||
@@ -31,0 +31,0 @@ } |
@@ -7,3 +7,3 @@ define(["require", "exports", "react", "@fluentui/style-utilities", "./FileTypeIconMap"], function (require, exports, React, style_utilities_1, FileTypeIconMap_1) { | ||
var SVG_SUFFIX = '_svg'; | ||
exports.DEFAULT_BASE_URL = style_utilities_1.FLUENT_CDN_BASE_URL + "/assets/item-types/"; | ||
exports.DEFAULT_BASE_URL = "".concat(style_utilities_1.FLUENT_CDN_BASE_URL, "/assets/item-types/"); | ||
exports.ICON_SIZES = [16, 20, 24, 32, 40, 48, 64, 96]; | ||
@@ -34,3 +34,3 @@ function initializeFileTypeIcons(baseUrl, options) { | ||
}); | ||
style_utilities_1.registerIcons({ | ||
(0, style_utilities_1.registerIcons)({ | ||
fontFace: {}, | ||
@@ -37,0 +37,0 @@ style: { |
define(["require", "exports", "@fluentui/set-version"], function (require, exports, set_version_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
set_version_1.setVersion('@fluentui/react-file-type-icons', '8.8.19'); | ||
(0, set_version_1.setVersion)('@fluentui/react-file-type-icons', '8.8.20'); | ||
}); | ||
//# sourceMappingURL=version.js.map |
@@ -16,4 +16,4 @@ "use strict"; | ||
var extension = options.extension, _a = options.size, size = _a === void 0 ? getFileTypeIconProps_1.DEFAULT_ICON_SIZE : _a, type = options.type, imageFileType = options.imageFileType; | ||
var baseIconName = getFileTypeIconProps_1.getFileTypeIconNameFromExtensionOrType(extension, type); // eg: docx | ||
var baseSuffix = getFileTypeIconProps_1.getFileTypeIconSuffix(size, imageFileType); // eg: 96_3x_svg or 96_png | ||
var baseIconName = (0, getFileTypeIconProps_1.getFileTypeIconNameFromExtensionOrType)(extension, type); // eg: docx | ||
var baseSuffix = (0, getFileTypeIconProps_1.getFileTypeIconSuffix)(size, imageFileType); // eg: 96_3x_svg or 96_png | ||
var suffixArray = baseSuffix.split('_'); // eg: ['96', '3x', 'svg'] | ||
@@ -23,9 +23,9 @@ var src; | ||
/** suffix is of type 96_3x_svg - it has a pixel ratio > 1*/ | ||
src = "" + baseUrl + size + "_" + suffixArray[1] + "/" + baseIconName + "." + suffixArray[2]; | ||
return "<img src=\"" + src + "\" height=\"100%\" width=\"100%\" />"; | ||
src = "".concat(baseUrl).concat(size, "_").concat(suffixArray[1], "/").concat(baseIconName, ".").concat(suffixArray[2]); | ||
return "<img src=\"".concat(src, "\" height=\"100%\" width=\"100%\" />"); | ||
} | ||
else if (suffixArray.length === 2) { | ||
/** suffix is of type 96_svg - it has a pixel ratio of 1*/ | ||
src = "" + baseUrl + size + "/" + baseIconName + "." + suffixArray[1]; | ||
return "<img src=\"" + src + "\" alt=\"\" />"; | ||
src = "".concat(baseUrl).concat(size, "/").concat(baseIconName, ".").concat(suffixArray[1]); | ||
return "<img src=\"".concat(src, "\" alt=\"\" />"); | ||
} | ||
@@ -32,0 +32,0 @@ } |
@@ -9,3 +9,3 @@ "use strict"; | ||
var SVG_SUFFIX = '_svg'; | ||
exports.DEFAULT_BASE_URL = style_utilities_1.FLUENT_CDN_BASE_URL + "/assets/item-types/"; | ||
exports.DEFAULT_BASE_URL = "".concat(style_utilities_1.FLUENT_CDN_BASE_URL, "/assets/item-types/"); | ||
exports.ICON_SIZES = [16, 20, 24, 32, 40, 48, 64, 96]; | ||
@@ -36,3 +36,3 @@ function initializeFileTypeIcons(baseUrl, options) { | ||
}); | ||
style_utilities_1.registerIcons({ | ||
(0, style_utilities_1.registerIcons)({ | ||
fontFace: {}, | ||
@@ -39,0 +39,0 @@ style: { |
@@ -6,3 +6,3 @@ "use strict"; | ||
var set_version_1 = require("@fluentui/set-version"); | ||
set_version_1.setVersion('@fluentui/react-file-type-icons', '8.8.19'); | ||
(0, set_version_1.setVersion)('@fluentui/react-file-type-icons', '8.8.20'); | ||
//# sourceMappingURL=version.js.map |
@@ -19,11 +19,11 @@ import { DEFAULT_BASE_URL } from './initializeFileTypeIcons'; | ||
/** suffix is of type 96_3x_svg - it has a pixel ratio > 1*/ | ||
src = "" + baseUrl + size + "_" + suffixArray[1] + "/" + baseIconName + "." + suffixArray[2]; | ||
return "<img src=\"" + src + "\" height=\"100%\" width=\"100%\" />"; | ||
src = "".concat(baseUrl).concat(size, "_").concat(suffixArray[1], "/").concat(baseIconName, ".").concat(suffixArray[2]); | ||
return "<img src=\"".concat(src, "\" height=\"100%\" width=\"100%\" />"); | ||
} | ||
else if (suffixArray.length === 2) { | ||
/** suffix is of type 96_svg - it has a pixel ratio of 1*/ | ||
src = "" + baseUrl + size + "/" + baseIconName + "." + suffixArray[1]; | ||
return "<img src=\"" + src + "\" alt=\"\" />"; | ||
src = "".concat(baseUrl).concat(size, "/").concat(baseIconName, ".").concat(suffixArray[1]); | ||
return "<img src=\"".concat(src, "\" alt=\"\" />"); | ||
} | ||
} | ||
//# sourceMappingURL=getFileTypeIconAsHTMLString.js.map |
@@ -6,3 +6,3 @@ import * as React from 'react'; | ||
var SVG_SUFFIX = '_svg'; | ||
export var DEFAULT_BASE_URL = FLUENT_CDN_BASE_URL + "/assets/item-types/"; | ||
export var DEFAULT_BASE_URL = "".concat(FLUENT_CDN_BASE_URL, "/assets/item-types/"); | ||
export var ICON_SIZES = [16, 20, 24, 32, 40, 48, 64, 96]; | ||
@@ -9,0 +9,0 @@ export function initializeFileTypeIcons(baseUrl, options) { |
// Do not modify this file; it is generated as part of publish. | ||
// The checked in version is a placeholder only and will not be updated. | ||
import { setVersion } from '@fluentui/set-version'; | ||
setVersion('@fluentui/react-file-type-icons', '8.8.19'); | ||
setVersion('@fluentui/react-file-type-icons', '8.8.20'); | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@fluentui/react-file-type-icons", | ||
"version": "8.8.19", | ||
"version": "8.8.20", | ||
"description": "Fluent UI React file type icon set.", | ||
@@ -30,4 +30,4 @@ "main": "lib-commonjs/index.js", | ||
"dependencies": { | ||
"@fluentui/set-version": "^8.2.10", | ||
"@fluentui/style-utilities": "^8.9.12", | ||
"@fluentui/set-version": "^8.2.11", | ||
"@fluentui/style-utilities": "^8.9.13", | ||
"tslib": "^2.1.0" | ||
@@ -34,0 +34,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
370412
5999