Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maggioli-design-system/mds-accordion-item

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-accordion-item - npm Package Compare versions

Comparing version 5.8.1 to 5.8.2

dist/collection/common/device.js

18

dist/collection/common/aria.js

@@ -21,2 +21,18 @@ const hash = (s) => {

};
const removeAttributesIf = (element, attribute, valueCheck = 'true', cleanAttributes) => {
if (ifAttribute(element, attribute, valueCheck)) {
const attributesList = Array.isArray(cleanAttributes) ? cleanAttributes : [cleanAttributes];
attributesList.forEach(attributeToRemove => {
element.removeAttribute(attributeToRemove);
});
return true;
}
return false;
};
const ifAttribute = (element, attribute, valueCheck = 'true') => {
if (element.hasAttribute(attribute) && element.getAttribute(attribute) === valueCheck) {
return true;
}
return false;
};
const hashValue = (value) => `${value}-${hash(value)}`;

@@ -30,2 +46,2 @@ const hashRandomValue = (value) => {

};
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
export { hashRandomValue, hashValue, removeAttributesIf, setAttributeIfEmpty, ifAttribute, unslugName, };

4

dist/collection/common/keyboard-manager.js

@@ -34,3 +34,3 @@ export class KeyboardManager {

this.escapeCallback = callback;
if (window !== undefined) {
if (typeof window !== 'undefined') {
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));

@@ -41,3 +41,3 @@ }

this.escapeCallback = () => { return; };
if (window !== undefined) {
if (typeof window !== 'undefined') {
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));

@@ -44,0 +44,0 @@ }

const fileExtensionsDictionary = {
'7z': { format: 'archive', description: 'Archivio compresso' },
ace: { format: 'archive', description: 'Archivio compresso' },
ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
dart: { format: 'code', description: 'Dart' },
db: { format: 'data', description: 'File di database' },
default: { format: 'attachment', description: 'Formato sconosciuto' },
dmg: { format: 'executable', description: 'Apple Disk Image' },
doc: { format: 'text', description: 'Documento Microsoft Word' },
docm: { format: 'text', description: 'Documento Microsoft Word' },
docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
eml: { format: 'email', description: 'E-mail di posta elettronica' },
eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
exe: { format: 'executable', description: 'File eseguibile Windows' },
flac: { format: 'audio', description: 'Audio non compresso' },
gif: { format: 'image', description: 'Immagine compressa', preview: true },
htm: { format: 'markup', description: 'Pagina web' },
heic: { format: 'image', description: 'High Efficiency Image File Format' },
html: { format: 'markup', description: 'Pagina web' },
jpe: { format: 'image', description: 'Immagine compressa', preview: true },
jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
jpg: { format: 'image', description: 'Immagine compressa', preview: true },
js: { format: 'code', description: 'JavaScript' },
json: { format: 'data', description: 'JavaScript Object Notation' },
jsx: { format: 'code', description: 'JavaScript' },
m2v: { format: 'video', description: 'Filmato SD' },
mp2: { format: 'audio', description: 'Audio compresso' },
mp3: { format: 'audio', description: 'Audio compresso' },
mp4: { format: 'video', description: 'Filmato HD' },
mp4v: { format: 'video', description: 'Filmato HD' },
mpeg: { format: 'video', description: 'Filmato SD' },
mpg4: { format: 'video', description: 'Filmato SD' },
mpg: { format: 'video', description: 'Filmato SD' },
mpga: { format: 'audio', description: 'Audio compresso' },
odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
odt: { format: 'text', description: 'File di testo LibreOffice' },
pdf: { format: 'document', description: 'Documento Adobe' },
php: { format: 'code', description: 'Hypertext Preprocessor' },
png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
rar: { format: 'archive', description: 'Archivio compresso' },
rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
shtml: { format: 'markup', description: 'Pagina web' },
svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
tar: { format: 'archive', description: 'Archivio non compresso' },
tiff: { format: 'image', description: 'Tag Image File Format' },
ts: { format: 'code', description: 'TypeScript' },
tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
txt: { format: 'text', description: 'Documento di testo non formattato' },
wav: { format: 'audio', description: 'Audio non compresso' },
webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
xar: { format: 'archive', description: 'Archivio compresso' },
xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
zip: { format: 'archive', description: 'Archivio compresso' },
'7z': { format: 'archive', description: 'compressedArchive' },
ace: { format: 'archive', description: 'compressedArchive' },
ai: { format: 'vector', description: 'fileAI' },
dart: { format: 'code', description: 'dart' },
db: { format: 'data', description: 'fileDB' },
default: { format: 'attachment', description: 'unknown' },
dmg: { format: 'executable', description: 'appleDiskImage' },
doc: { format: 'text', description: 'documentMS' },
docm: { format: 'text', description: 'documentMS' },
docx: { format: 'text', description: 'compressedDocumentMS' },
eml: { format: 'email', description: 'email' },
eps: { format: 'vector', description: 'fileEPS' },
exe: { format: 'executable', description: 'fileEXE' },
flac: { format: 'audio', description: 'uncompressedAudio' },
gif: { format: 'image', description: 'compressedImage', preview: true },
htm: { format: 'markup', description: 'documentWeb' },
heic: { format: 'image', description: 'imageHEFF' },
html: { format: 'markup', description: 'documentWeb' },
jpe: { format: 'image', description: 'compressedImage', preview: true },
jpeg: { format: 'image', description: 'compressedImage', preview: true },
jpg: { format: 'image', description: 'compressedImage', preview: true },
js: { format: 'code', description: 'fileJS' },
json: { format: 'data', description: 'fileJSON' },
jsx: { format: 'code', description: 'fileJS' },
m2v: { format: 'video', description: 'videoSD' },
mp2: { format: 'audio', description: 'compressedAudio' },
mp3: { format: 'audio', description: 'compressedAudio' },
mp4: { format: 'video', description: 'videoHD' },
mp4v: { format: 'video', description: 'videoHD' },
mpeg: { format: 'video', description: 'videoSD' },
mpg4: { format: 'video', description: 'videoSD' },
mpg: { format: 'video', description: 'videoSD' },
mpga: { format: 'audio', description: 'compressedAudio' },
odp: { format: 'slide', description: 'slideLO' },
ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
odt: { format: 'text', description: 'documentLO' },
pdf: { format: 'document', description: 'documentAdobe' },
php: { format: 'code', description: 'filePHP' },
png: { format: 'image', description: 'imagePNG', preview: true },
ppt: { format: 'slide', description: 'slidePowerPoint' },
rar: { format: 'archive', description: 'compressedArchive' },
rtf: { format: 'text', description: 'documentRTF' },
sass: { format: 'code', description: 'fileSASS' },
shtml: { format: 'markup', description: 'documentWeb' },
svg: { format: 'vector', description: 'imageSVG', preview: true },
tar: { format: 'archive', description: 'uncompressedArchive' },
tiff: { format: 'image', description: 'imageTIFF' },
ts: { format: 'code', description: 'fileTS' },
tsx: { format: 'code', description: 'fileTSX' },
txt: { format: 'text', description: 'documentTXT' },
wav: { format: 'audio', description: 'uncompressedAudio' },
webp: { format: 'image', description: 'imageWEBP', preview: true },
xar: { format: 'archive', description: 'compressedArchive' },
xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
zip: { format: 'archive', description: 'compressedArchive' },
};
// const fileExtensionsDictionary: FileExtenstion = {
// '7z': { format: 'archive', description: 'Archivio compresso' },
// ace: { format: 'archive', description: 'Archivio compresso' },
// ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
// dart: { format: 'code', description: 'Dart' },
// db: { format: 'data', description: 'File di database' },
// default: { format: 'attachment', description: 'Formato sconosciuto' },
// dmg: { format: 'executable', description: 'Apple Disk Image' },
// doc: { format: 'text', description: 'Documento Microsoft Word' },
// docm: { format: 'text', description: 'Documento Microsoft Word' },
// docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
// eml: { format: 'email', description: 'E-mail di posta elettronica' },
// eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
// exe: { format: 'executable', description: 'File eseguibile Windows' },
// flac: { format: 'audio', description: 'Audio non compresso' },
// gif: { format: 'image', description: 'Immagine compressa', preview: true },
// htm: { format: 'markup', description: 'Pagina web' },
// heic: { format: 'image', description: 'High Efficiency Image File Format' },
// html: { format: 'markup', description: 'Pagina web' },
// jpe: { format: 'image', description: 'Immagine compressa', preview: true },
// jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
// jpg: { format: 'image', description: 'Immagine compressa', preview: true },
// js: { format: 'code', description: 'JavaScript' },
// json: { format: 'data', description: 'JavaScript Object Notation' },
// jsx: { format: 'code', description: 'JavaScript' },
// m2v: { format: 'video', description: 'Filmato SD' },
// mp2: { format: 'audio', description: 'Audio compresso' },
// mp3: { format: 'audio', description: 'Audio compresso' },
// mp4: { format: 'video', description: 'Filmato HD' },
// mp4v: { format: 'video', description: 'Filmato HD' },
// mpeg: { format: 'video', description: 'Filmato SD' },
// mpg4: { format: 'video', description: 'Filmato SD' },
// mpg: { format: 'video', description: 'Filmato SD' },
// mpga: { format: 'audio', description: 'Audio compresso' },
// odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
// ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
// odt: { format: 'text', description: 'File di testo LibreOffice' },
// pdf: { format: 'document', description: 'Documento Adobe' },
// php: { format: 'code', description: 'Hypertext Preprocessor' },
// png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
// ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
// rar: { format: 'archive', description: 'Archivio compresso' },
// rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
// sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
// shtml: { format: 'markup', description: 'Pagina web' },
// svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
// tar: { format: 'archive', description: 'Archivio non compresso' },
// tiff: { format: 'image', description: 'Tag Image File Format' },
// ts: { format: 'code', description: 'TypeScript' },
// tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
// txt: { format: 'text', description: 'Documento di testo non formattato' },
// wav: { format: 'audio', description: 'Audio non compresso' },
// webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
// xar: { format: 'archive', description: 'Archivio compresso' },
// xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
// xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
// zip: { format: 'archive', description: 'Archivio compresso' },
// }
const genericMimeToExt = new Map([

@@ -60,0 +118,0 @@ ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],

@@ -0,1 +1,60 @@

const typographyTagDictionary = [
'abbr',
'address',
'article',
'b',
'bdo',
'blockquote',
'cite',
'code',
'dd',
'del',
'details',
'dfn',
'div',
'dl',
'dt',
'em',
'figcaption',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'i',
'ins',
'kbd',
'label',
'legend',
'li',
'mark',
'ol',
'p',
'pre',
'q',
'rb',
'rt',
'ruby',
's',
'samp',
'small',
'span',
'strong',
'sub',
'summary',
'sup',
'time',
'u',
'ul',
'var',
];
const typographyHeadingTagDictionary = [
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
];
const truncateDictionary = [

@@ -6,2 +65,2 @@ 'all',

];
export { truncateDictionary, };
export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };
{
"timestamp": "2024-11-25T17:12:26",
"timestamp": "2024-12-04T17:58:20",
"compiler": {

@@ -4,0 +4,0 @@ "name": "@stencil/core",

{
"timestamp": "2024-11-25T17:12:27",
"timestamp": "2024-12-04T17:58:20",
"compiler": {

@@ -12,10 +12,11 @@ "name": "node",

"entries": 1,
"bundles": 92,
"bundles": 93,
"outputs": [
{
"name": "dist-collection",
"files": 44,
"files": 45,
"generatedFiles": [
"./dist/collection/common/aria.js",
"./dist/collection/common/date.js",
"./dist/collection/common/device.js",
"./dist/collection/common/file.js",

@@ -734,2 +735,3 @@ "./dist/collection/common/icon.js",

"./src/common/date.ts": [],
"./src/common/device.ts": [],
"./src/common/file.ts": [],

@@ -736,0 +738,0 @@ "./src/common/icon.ts": [],

declare const unslugName: (name: string) => string;
declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string;
declare const removeAttributesIf: (element: HTMLElement, attribute: string, valueCheck: string | undefined, cleanAttributes: string | string[]) => boolean;
declare const ifAttribute: (element: HTMLElement, attribute: string, valueCheck?: string) => boolean;
declare const hashValue: (value: string) => string;
declare const hashRandomValue: (value?: string) => string;
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
export { hashRandomValue, hashValue, removeAttributesIf, setAttributeIfEmpty, ifAttribute, unslugName, };

@@ -0,2 +1,4 @@

declare const typographyTagDictionary: string[];
declare const typographyHeadingTagDictionary: string[];
declare const truncateDictionary: string[];
export { truncateDictionary, };
export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };

@@ -0,1 +1,3 @@

export type TypographyTagType = 'abbr' | 'address' | 'article' | 'b' | 'bdo' | 'blockquote' | 'cite' | 'code' | 'dd' | 'del' | 'details' | 'dfn' | 'div' | 'dl' | 'dt' | 'em' | 'figcaption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'i' | 'ins' | 'kbd' | 'label' | 'legend' | 'li' | 'mark' | 'ol' | 'p' | 'pre' | 'q' | 'rb' | 'rt' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'summary' | 'sup' | 'time' | 'u' | 'ul' | 'var';
export type TypographyHeadingTagType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
export type TypographyTruncateType = 'all' | 'none' | 'word';
{
"timestamp": "2024-11-25T16:00:58",
"timestamp": "2024-12-04T15:30:05",
"compiler": {

@@ -680,2 +680,7 @@ "name": "@stencil/core",

},
"src/type/text.ts::TypographyHeadingTagType": {
"declaration": "export type TypographyHeadingTagType =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'",
"docstring": "",
"path": "src/type/text.ts"
},
"src/components/mds-stepper-bar/meta/event-detail.ts::MdsStepperBarEventDetail": {

@@ -712,3 +717,3 @@ "declaration": "export interface MdsStepperBarEventDetail {\n step: number\n value: string\n}",

"src/components/mds-table-header-cell/meta/types.ts::SortDirectionType": {
"declaration": "export type SortDirectionType =\n | 'asc'\n | 'desc'\n | 'none'",
"declaration": "export type SortDirectionType =\n | 'ascending'\n | 'descending'\n | 'none'",
"docstring": "",

@@ -722,6 +727,6 @@ "path": "src/components/mds-table-header-cell/meta/types.ts"

},
"src/components/mds-text/meta/types.ts::TypographyTagType": {
"src/type/text.ts::TypographyTagType": {
"declaration": "export type TypographyTagType =\n | 'abbr'\n | 'address'\n | 'article'\n | 'b'\n | 'bdo'\n | 'blockquote'\n | 'cite'\n | 'code'\n | 'dd'\n | 'del'\n | 'details'\n | 'dfn'\n | 'div'\n | 'dl'\n | 'dt'\n | 'em'\n | 'figcaption'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'i'\n | 'ins'\n | 'kbd'\n | 'label'\n | 'legend'\n | 'li'\n | 'mark'\n | 'ol'\n | 'p'\n | 'pre'\n | 'q'\n | 'rb'\n | 'rt'\n | 'ruby'\n | 's'\n | 'samp'\n | 'small'\n | 'span'\n | 'strong'\n | 'sub'\n | 'summary'\n | 'sup'\n | 'time'\n | 'u'\n | 'ul'\n | 'var'",
"docstring": "",
"path": "src/components/mds-text/meta/types.ts"
"path": "src/type/text.ts"
},

@@ -728,0 +733,0 @@ "src/type/variant.ts::ThemeLuminanceVariantType": {

{
"name": "@maggioli-design-system/mds-accordion-item",
"version": "5.8.1",
"version": "5.8.2",
"description": "mds-accordion-item is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",

@@ -27,3 +27,3 @@ "main": "dist/index.cjs.js",

"dependencies": {
"@maggioli-design-system/mds-text": "4.5.1",
"@maggioli-design-system/mds-text": "4.5.2",
"@maggioli-design-system/styles": "15.5.0",

@@ -30,0 +30,0 @@ "@stencil/core": "4.22.2"

@@ -23,2 +23,20 @@ const hash = (s: string): string => {

const removeAttributesIf = (element: HTMLElement, attribute: string, valueCheck: string = 'true', cleanAttributes: string | string[]): boolean => {
if (ifAttribute(element, attribute, valueCheck)) {
const attributesList = Array.isArray(cleanAttributes) ? cleanAttributes : [cleanAttributes]
attributesList.forEach(attributeToRemove => {
element.removeAttribute(attributeToRemove)
})
return true
}
return false
}
const ifAttribute = (element: HTMLElement, attribute: string, valueCheck: string = 'true'): boolean => {
if (element.hasAttribute(attribute) && element.getAttribute(attribute) === valueCheck) {
return true
}
return false
}
const hashValue = (value: string): string => `${value}-${hash(value)}`

@@ -36,6 +54,8 @@

export {
unslugName,
setAttributeIfEmpty,
hashRandomValue,
hashValue,
removeAttributesIf,
setAttributeIfEmpty,
ifAttribute,
unslugName,
}

@@ -39,3 +39,3 @@ export class KeyboardManager {

this.escapeCallback = callback
if (window !== undefined) {
if (typeof window !== 'undefined') {
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))

@@ -47,3 +47,3 @@ }

this.escapeCallback = () => { return }
if (window !== undefined) {
if (typeof window !== 'undefined') {
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))

@@ -50,0 +50,0 @@ }

@@ -14,60 +14,119 @@ import { FileFormat } from '@type/variant-file-format'

const fileExtensionsDictionary: FileExtenstion = {
'7z': { format: 'archive', description: 'Archivio compresso' },
ace: { format: 'archive', description: 'Archivio compresso' },
ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
dart: { format: 'code', description: 'Dart' },
db: { format: 'data', description: 'File di database' },
default: { format: 'attachment', description: 'Formato sconosciuto' },
dmg: { format: 'executable', description: 'Apple Disk Image' },
doc: { format: 'text', description: 'Documento Microsoft Word' },
docm: { format: 'text', description: 'Documento Microsoft Word' },
docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
eml: { format: 'email', description: 'E-mail di posta elettronica' },
eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
exe: { format: 'executable', description: 'File eseguibile Windows' },
flac: { format: 'audio', description: 'Audio non compresso' },
gif: { format: 'image', description: 'Immagine compressa', preview: true },
htm: { format: 'markup', description: 'Pagina web' },
heic: { format: 'image', description: 'High Efficiency Image File Format' },
html: { format: 'markup', description: 'Pagina web' },
jpe: { format: 'image', description: 'Immagine compressa', preview: true },
jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
jpg: { format: 'image', description: 'Immagine compressa', preview: true },
js: { format: 'code', description: 'JavaScript' },
json: { format: 'data', description: 'JavaScript Object Notation' },
jsx: { format: 'code', description: 'JavaScript' },
m2v: { format: 'video', description: 'Filmato SD' },
mp2: { format: 'audio', description: 'Audio compresso' },
mp3: { format: 'audio', description: 'Audio compresso' },
mp4: { format: 'video', description: 'Filmato HD' },
mp4v: { format: 'video', description: 'Filmato HD' },
mpeg: { format: 'video', description: 'Filmato SD' },
mpg4: { format: 'video', description: 'Filmato SD' },
mpg: { format: 'video', description: 'Filmato SD' },
mpga: { format: 'audio', description: 'Audio compresso' },
odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
odt: { format: 'text', description: 'File di testo LibreOffice' },
pdf: { format: 'document', description: 'Documento Adobe' },
php: { format: 'code', description: 'Hypertext Preprocessor' },
png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
rar: { format: 'archive', description: 'Archivio compresso' },
rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
shtml: { format: 'markup', description: 'Pagina web' },
svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
tar: { format: 'archive', description: 'Archivio non compresso' },
tiff: { format: 'image', description: 'Tag Image File Format' },
ts: { format: 'code', description: 'TypeScript' },
tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
txt: { format: 'text', description: 'Documento di testo non formattato' },
wav: { format: 'audio', description: 'Audio non compresso' },
webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
xar: { format: 'archive', description: 'Archivio compresso' },
xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
zip: { format: 'archive', description: 'Archivio compresso' },
'7z': { format: 'archive', description: 'compressedArchive' },
ace: { format: 'archive', description: 'compressedArchive' },
ai: { format: 'vector', description: 'fileAI' },
dart: { format: 'code', description: 'dart' },
db: { format: 'data', description: 'fileDB' },
default: { format: 'attachment', description: 'unknown' },
dmg: { format: 'executable', description: 'appleDiskImage' },
doc: { format: 'text', description: 'documentMS' },
docm: { format: 'text', description: 'documentMS' },
docx: { format: 'text', description: 'compressedDocumentMS' },
eml: { format: 'email', description: 'email' },
eps: { format: 'vector', description: 'fileEPS' },
exe: { format: 'executable', description: 'fileEXE' },
flac: { format: 'audio', description: 'uncompressedAudio' },
gif: { format: 'image', description: 'compressedImage', preview: true },
htm: { format: 'markup', description: 'documentWeb' },
heic: { format: 'image', description: 'imageHEFF' },
html: { format: 'markup', description: 'documentWeb' },
jpe: { format: 'image', description: 'compressedImage', preview: true },
jpeg: { format: 'image', description: 'compressedImage', preview: true },
jpg: { format: 'image', description: 'compressedImage', preview: true },
js: { format: 'code', description: 'fileJS' },
json: { format: 'data', description: 'fileJSON' },
jsx: { format: 'code', description: 'fileJS' },
m2v: { format: 'video', description: 'videoSD' },
mp2: { format: 'audio', description: 'compressedAudio' },
mp3: { format: 'audio', description: 'compressedAudio' },
mp4: { format: 'video', description: 'videoHD' },
mp4v: { format: 'video', description: 'videoHD' },
mpeg: { format: 'video', description: 'videoSD' },
mpg4: { format: 'video', description: 'videoSD' },
mpg: { format: 'video', description: 'videoSD' },
mpga: { format: 'audio', description: 'compressedAudio' },
odp: { format: 'slide', description: 'slideLO' },
ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
odt: { format: 'text', description: 'documentLO' },
pdf: { format: 'document', description: 'documentAdobe' },
php: { format: 'code', description: 'filePHP' },
png: { format: 'image', description: 'imagePNG', preview: true },
ppt: { format: 'slide', description: 'slidePowerPoint' },
rar: { format: 'archive', description: 'compressedArchive' },
rtf: { format: 'text', description: 'documentRTF' },
sass: { format: 'code', description: 'fileSASS' },
shtml: { format: 'markup', description: 'documentWeb' },
svg: { format: 'vector', description: 'imageSVG', preview: true },
tar: { format: 'archive', description: 'uncompressedArchive' },
tiff: { format: 'image', description: 'imageTIFF' },
ts: { format: 'code', description: 'fileTS' },
tsx: { format: 'code', description: 'fileTSX' },
txt: { format: 'text', description: 'documentTXT' },
wav: { format: 'audio', description: 'uncompressedAudio' },
webp: { format: 'image', description: 'imageWEBP', preview: true },
xar: { format: 'archive', description: 'compressedArchive' },
xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
zip: { format: 'archive', description: 'compressedArchive' },
}
// const fileExtensionsDictionary: FileExtenstion = {
// '7z': { format: 'archive', description: 'Archivio compresso' },
// ace: { format: 'archive', description: 'Archivio compresso' },
// ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
// dart: { format: 'code', description: 'Dart' },
// db: { format: 'data', description: 'File di database' },
// default: { format: 'attachment', description: 'Formato sconosciuto' },
// dmg: { format: 'executable', description: 'Apple Disk Image' },
// doc: { format: 'text', description: 'Documento Microsoft Word' },
// docm: { format: 'text', description: 'Documento Microsoft Word' },
// docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
// eml: { format: 'email', description: 'E-mail di posta elettronica' },
// eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
// exe: { format: 'executable', description: 'File eseguibile Windows' },
// flac: { format: 'audio', description: 'Audio non compresso' },
// gif: { format: 'image', description: 'Immagine compressa', preview: true },
// htm: { format: 'markup', description: 'Pagina web' },
// heic: { format: 'image', description: 'High Efficiency Image File Format' },
// html: { format: 'markup', description: 'Pagina web' },
// jpe: { format: 'image', description: 'Immagine compressa', preview: true },
// jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
// jpg: { format: 'image', description: 'Immagine compressa', preview: true },
// js: { format: 'code', description: 'JavaScript' },
// json: { format: 'data', description: 'JavaScript Object Notation' },
// jsx: { format: 'code', description: 'JavaScript' },
// m2v: { format: 'video', description: 'Filmato SD' },
// mp2: { format: 'audio', description: 'Audio compresso' },
// mp3: { format: 'audio', description: 'Audio compresso' },
// mp4: { format: 'video', description: 'Filmato HD' },
// mp4v: { format: 'video', description: 'Filmato HD' },
// mpeg: { format: 'video', description: 'Filmato SD' },
// mpg4: { format: 'video', description: 'Filmato SD' },
// mpg: { format: 'video', description: 'Filmato SD' },
// mpga: { format: 'audio', description: 'Audio compresso' },
// odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
// ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
// odt: { format: 'text', description: 'File di testo LibreOffice' },
// pdf: { format: 'document', description: 'Documento Adobe' },
// php: { format: 'code', description: 'Hypertext Preprocessor' },
// png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
// ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
// rar: { format: 'archive', description: 'Archivio compresso' },
// rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
// sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
// shtml: { format: 'markup', description: 'Pagina web' },
// svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
// tar: { format: 'archive', description: 'Archivio non compresso' },
// tiff: { format: 'image', description: 'Tag Image File Format' },
// ts: { format: 'code', description: 'TypeScript' },
// tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
// txt: { format: 'text', description: 'Documento di testo non formattato' },
// wav: { format: 'audio', description: 'Audio non compresso' },
// webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
// xar: { format: 'archive', description: 'Archivio compresso' },
// xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
// xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
// zip: { format: 'archive', description: 'Archivio compresso' },
// }
const genericMimeToExt: Map<string, string[]> = new Map([

@@ -74,0 +133,0 @@ ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],

@@ -0,1 +1,63 @@

const typographyTagDictionary = [
'abbr',
'address',
'article',
'b',
'bdo',
'blockquote',
'cite',
'code',
'dd',
'del',
'details',
'dfn',
'div',
'dl',
'dt',
'em',
'figcaption',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'i',
'ins',
'kbd',
'label',
'legend',
'li',
'mark',
'ol',
'p',
'pre',
'q',
'rb',
'rt',
'ruby',
's',
'samp',
'small',
'span',
'strong',
'sub',
'summary',
'sup',
'time',
'u',
'ul',
'var',
]
const typographyHeadingTagDictionary = [
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
]
const truncateDictionary = [

@@ -9,2 +71,4 @@ 'all',

truncateDictionary,
typographyHeadingTagDictionary,
typographyTagDictionary,
}

@@ -38,2 +38,3 @@ [

"mgg/ai-brain-outline",
"mgg/ai-human",
"mgg/ai-message",

@@ -115,2 +116,4 @@ "mgg/ai-outline",

"mgg/field",
"mgg/file-certificate",
"mgg/file-clock",
"mgg/file-download",

@@ -137,2 +140,3 @@ "mgg/file-folder-tree",

"mgg/fit-vertical",
"mgg/fontawesome-torii-gate",
"mgg/forwarded-with-a-single-sending",

@@ -147,2 +151,3 @@ "mgg/fullscreen-on-alt",

"mgg/google-check-small",
"mgg/google-drag-pan",
"mgg/google-experiment",

@@ -327,2 +332,3 @@ "mgg/google-face-retouching-off",

"mi/baseline/broken-image",
"mi/baseline/call",
"mi/baseline/cancel",

@@ -337,2 +343,3 @@ "mi/baseline/category",

"mi/baseline/dark-mode",
"mi/baseline/delete",
"mi/baseline/description",

@@ -369,2 +376,3 @@ "mi/baseline/directions-run",

"mi/baseline/route",
"mi/baseline/send",
"mi/baseline/settings",

@@ -371,0 +379,0 @@ "mi/baseline/sports",

@@ -26,2 +26,3 @@ [

"mgg/ai-brain",
"mgg/ai-human",
"mgg/ai-message",

@@ -103,2 +104,4 @@ "mgg/ai-outline",

"mgg/field",
"mgg/file-certificate",
"mgg/file-clock",
"mgg/file-download",

@@ -125,2 +128,3 @@ "mgg/file-folder-tree-open",

"mgg/fit-vertical",
"mgg/fontawesome-torii-gate",
"mgg/forwarded-with-a-single-sending",

@@ -135,2 +139,3 @@ "mgg/fullscreen-on-alt",

"mgg/google-check-small",
"mgg/google-drag-pan",
"mgg/google-experiment",

@@ -137,0 +142,0 @@ "mgg/google-face-retouching-off",

@@ -0,1 +1,60 @@

export type TypographyTagType =
| 'abbr'
| 'address'
| 'article'
| 'b'
| 'bdo'
| 'blockquote'
| 'cite'
| 'code'
| 'dd'
| 'del'
| 'details'
| 'dfn'
| 'div'
| 'dl'
| 'dt'
| 'em'
| 'figcaption'
| 'h1'
| 'h2'
| 'h3'
| 'h4'
| 'h5'
| 'h6'
| 'i'
| 'ins'
| 'kbd'
| 'label'
| 'legend'
| 'li'
| 'mark'
| 'ol'
| 'p'
| 'pre'
| 'q'
| 'rb'
| 'rt'
| 'ruby'
| 's'
| 'samp'
| 'small'
| 'span'
| 'strong'
| 'sub'
| 'summary'
| 'sup'
| 'time'
| 'u'
| 'ul'
| 'var'
export type TypographyHeadingTagType =
| 'h1'
| 'h2'
| 'h3'
| 'h4'
| 'h5'
| 'h6'
export type TypographyTruncateType =

@@ -2,0 +61,0 @@ | 'all'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc