@epam/ai-dial-chat-shared 1.1.0-dev.331 → 1.1.0-dev.334
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/constants/mime-types.d.ts +7 -1
- package/constants/mime-types.d.ts.map +1 -1
- package/index.js +79 -18
- package/package.json +1 -1
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Maps common MIME types to canonical file extensions.
|
|
3
|
+
*
|
|
4
|
+
* The standard entries follow MDN's common media types table. Project-specific
|
|
5
|
+
* aliases are retained for MIME values produced by existing integrations.
|
|
6
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types
|
|
7
|
+
*/
|
|
2
8
|
export declare const MIME_TYPE_EXT_MAP: Record<string, string>;
|
|
3
9
|
/** MIME type wildcard that matches any content type. */
|
|
4
10
|
export declare const MIME_TYPE_WILDCARD = "*/*";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mime-types.d.ts","sourceRoot":"","sources":["../../src/constants/mime-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mime-types.d.ts","sourceRoot":"","sources":["../../src/constants/mime-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4GpD,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,WAAW,CAAC"}
|
package/index.js
CHANGED
|
@@ -1906,39 +1906,100 @@ var pn = (e) => {
|
|
|
1906
1906
|
return n.has(i.id) || (n.add(i.id), e.push(i)), e;
|
|
1907
1907
|
}, []) ?? [];
|
|
1908
1908
|
}, xn = {
|
|
1909
|
-
"text/
|
|
1910
|
-
"text/
|
|
1909
|
+
"text/calendar": "ics",
|
|
1910
|
+
"text/css": "css",
|
|
1911
|
+
"text/csv": "csv",
|
|
1911
1912
|
"text/html": "html",
|
|
1912
1913
|
"text/javascript": "js",
|
|
1913
|
-
"text/typescript": "ts",
|
|
1914
1914
|
"text/jsx": "jsx",
|
|
1915
|
+
"text/markdown": "md",
|
|
1916
|
+
"text/plain": "txt",
|
|
1915
1917
|
"text/tsx": "tsx",
|
|
1916
|
-
"text/
|
|
1918
|
+
"text/typescript": "ts",
|
|
1919
|
+
"text/xml": "xml",
|
|
1917
1920
|
"text/x-php": "php",
|
|
1918
1921
|
"text/x-rustsrc": "rs",
|
|
1922
|
+
"text/x-sql": "sql",
|
|
1919
1923
|
"text/x-vue": "vue",
|
|
1924
|
+
"application/epub+zip": "epub",
|
|
1925
|
+
"application/gzip": "gz",
|
|
1926
|
+
"application/java-archive": "jar",
|
|
1927
|
+
"application/javascript": "js",
|
|
1920
1928
|
"application/json": "json",
|
|
1929
|
+
"application/ld+json": "jsonld",
|
|
1930
|
+
"application/manifest+json": "webmanifest",
|
|
1931
|
+
"application/msword": "doc",
|
|
1932
|
+
"application/octet-stream": "bin",
|
|
1933
|
+
"application/ogg": "ogx",
|
|
1921
1934
|
"application/pdf": "pdf",
|
|
1922
|
-
"application/
|
|
1935
|
+
"application/rtf": "rtf",
|
|
1936
|
+
"application/sql": "sql",
|
|
1923
1937
|
"application/typescript": "ts",
|
|
1924
1938
|
"application/xhtml+xml": "xhtml",
|
|
1925
|
-
"application/
|
|
1926
|
-
"application/
|
|
1927
|
-
"application/
|
|
1928
|
-
"application/x-rar-compressed": "rar",
|
|
1929
|
-
"application/x-7z-compressed": "7z",
|
|
1930
|
-
"application/x-php": "php",
|
|
1931
|
-
"application/x-rust": "rs",
|
|
1932
|
-
"application/sql": "sql",
|
|
1933
|
-
"application/msword": "doc",
|
|
1934
|
-
"application/vnd.ms-word": "doc",
|
|
1939
|
+
"application/xml": "xml",
|
|
1940
|
+
"application/vnd.amazon.ebook": "azw",
|
|
1941
|
+
"application/vnd.apple.installer+xml": "mpkg",
|
|
1935
1942
|
"application/vnd.ms-excel": "xls",
|
|
1943
|
+
"application/vnd.ms-fontobject": "eot",
|
|
1936
1944
|
"application/vnd.ms-powerpoint": "ppt",
|
|
1937
|
-
"application/vnd.
|
|
1938
|
-
"application/vnd.
|
|
1945
|
+
"application/vnd.ms-word": "doc",
|
|
1946
|
+
"application/vnd.mozilla.xul+xml": "xul",
|
|
1947
|
+
"application/vnd.oasis.opendocument.presentation": "odp",
|
|
1948
|
+
"application/vnd.oasis.opendocument.spreadsheet": "ods",
|
|
1949
|
+
"application/vnd.oasis.opendocument.text": "odt",
|
|
1939
1950
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
|
|
1951
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
|
|
1952
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
|
|
1953
|
+
"application/vnd.rar": "rar",
|
|
1954
|
+
"application/vnd.visio": "vsd",
|
|
1955
|
+
"application/x-7z-compressed": "7z",
|
|
1956
|
+
"application/x-abiword": "abw",
|
|
1957
|
+
"application/x-bzip": "bz",
|
|
1958
|
+
"application/x-bzip2": "bz2",
|
|
1959
|
+
"application/x-cdf": "cda",
|
|
1960
|
+
"application/x-csh": "csh",
|
|
1961
|
+
"application/x-freearc": "arc",
|
|
1962
|
+
"application/x-gzip": "gz",
|
|
1963
|
+
"application/x-httpd-php": "php",
|
|
1964
|
+
"application/x-php": "php",
|
|
1965
|
+
"application/x-rar-compressed": "rar",
|
|
1966
|
+
"application/x-rust": "rs",
|
|
1967
|
+
"application/x-sh": "sh",
|
|
1968
|
+
"application/x-tar": "tar",
|
|
1969
|
+
"application/x-zip-compressed": "zip",
|
|
1970
|
+
"application/zip": "zip",
|
|
1971
|
+
"audio/3gpp": "3gp",
|
|
1972
|
+
"audio/3gpp2": "3g2",
|
|
1973
|
+
"audio/aac": "aac",
|
|
1974
|
+
"audio/midi": "midi",
|
|
1975
|
+
"audio/mp4": "m4a",
|
|
1976
|
+
"audio/mpeg": "mp3",
|
|
1977
|
+
"audio/ogg": "oga",
|
|
1978
|
+
"audio/wav": "wav",
|
|
1979
|
+
"audio/webm": "weba",
|
|
1980
|
+
"audio/x-midi": "midi",
|
|
1981
|
+
"font/otf": "otf",
|
|
1982
|
+
"font/ttf": "ttf",
|
|
1983
|
+
"font/woff": "woff",
|
|
1984
|
+
"font/woff2": "woff2",
|
|
1985
|
+
"image/apng": "apng",
|
|
1986
|
+
"image/avif": "avif",
|
|
1987
|
+
"image/bmp": "bmp",
|
|
1988
|
+
"image/gif": "gif",
|
|
1940
1989
|
"image/jpeg": "jpg",
|
|
1941
|
-
"image/
|
|
1990
|
+
"image/png": "png",
|
|
1991
|
+
"image/svg+xml": "svg",
|
|
1992
|
+
"image/tiff": "tiff",
|
|
1993
|
+
"image/vnd.microsoft.icon": "ico",
|
|
1994
|
+
"image/webp": "webp",
|
|
1995
|
+
"video/3gpp": "3gp",
|
|
1996
|
+
"video/3gpp2": "3g2",
|
|
1997
|
+
"video/mp2t": "ts",
|
|
1998
|
+
"video/mp4": "mp4",
|
|
1999
|
+
"video/mpeg": "mpeg",
|
|
2000
|
+
"video/ogg": "ogv",
|
|
2001
|
+
"video/webm": "webm",
|
|
2002
|
+
"video/x-msvideo": "avi"
|
|
1942
2003
|
}, Sn = "*/*", Cn = "audio/", wn = (e) => e?.some((e) => e === "*/*" || e.startsWith("audio/")) ?? !1;
|
|
1943
2004
|
//#endregion
|
|
1944
2005
|
//#region ../../node_modules/dompurify/dist/purify.es.mjs
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-shared",
|
|
3
3
|
"description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.334",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|