@uploadcare/file-uploader
Version:
Building blocks for Uploadcare products integration
202 lines (201 loc) • 5.81 kB
JSON
{
"name": "@uploadcare/file-uploader",
"version": "1.24.0",
"description": "Building blocks for Uploadcare products integration",
"keywords": [
"web components",
"uploadcare",
"lighter",
"file uploader",
"adaptive image",
"image optimization",
"image editing",
"image size",
"cloud image editor",
"symbiote.js",
"upload api client",
"building blocks",
"blocks",
"lr-blocks",
"uc-blocks",
"widget",
"integrations",
"frontend",
"typescript",
"smart cdn",
"cloud file platform",
"transformation api",
"webp",
"avif",
"custom elements",
"shadow dom",
"shadow root",
"css context properties",
"meta applications",
"MIT"
],
"type": "module",
"sideEffects": [
"*.css"
],
"module": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": "./dist/index.ssr.js",
"browser": "./dist/index.js",
"default": "./dist/index.js"
},
"./index.css": {
"types": "./types/css.d.ts",
"default": "./dist/index.css"
},
"./abstract/loadFileUploaderFrom.js": "./dist/abstract/loadFileUploaderFrom.js",
"./env": "./dist/env.js",
"./web/*": "./web/*",
"./types/jsx": "./types/jsx.d.ts",
"./types/*": "./types/*",
"./locales/*": "./dist/locales/*"
},
"repository": {
"type": "https",
"url": "https://github.com/uploadcare/file-uploader/"
},
"homepage": "https://uploadcare.com/",
"files": [
"{dist,web,types}/**/*.{js,css,d.ts,d.ts.map}",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"dev": "vite dev",
"test": "npm run test:types && npm run test:specs && npm run test:specs && npm run test:locales && npm run test:e2e",
"test:types": "tsd -t ./dist/index.d.ts -f ./types/test/",
"test:attw": "attw --pack . --profile esm-only",
"test:publint": "publint",
"test:specs": "vitest run --project specs",
"test:e2e": "vitest run --coverage --project e2e",
"test:e2e:dev": "vitest --browser.headless=false",
"test:locales": "tsx ./scripts/test-locales.ts",
"release": "shipjs prepare",
"build:lib": "npm run clean:web && npm run clean:dist && tsx ./scripts/build.ts",
"build:ssr-stubs": "tsx ./scripts/build-ssr-stubs.ts",
"build:jsx:types": "tsx ./scripts/build-jsx-types.ts",
"build:svg-sprites": "tsx ./scripts/build-svg-sprite.ts",
"build": "run-s build:svg-sprites build:lib build:ssr-stubs build:jsx:types && npm run test:attw && npm run test:publint && npm run lint:size",
"tsc": "run-s tsc:app tsc:test tsc:e2e tsc:node",
"tsc:app": "tsc --project tsconfig.app.json",
"tsc:test": "tsc --project tsconfig.test.json",
"tsc:e2e": "tsc --project tsconfig.e2e-test.json",
"tsc:node": "tsc --project tsconfig.node.json",
"lint:size": "size-limit",
"lint:js": "biome lint",
"lint:js:fix": "biome lint --write",
"lint:css": "stylelint './**/*.css'",
"lint:css:fix": "stylelint './**/*.css' --fix",
"lint": "run-s lint:js lint:css",
"clean:web": "rimraf './web/'",
"clean:dist": "rimraf './dist/'",
"clean": "run-s clean:*",
"format": "biome check --write",
"prepare": "husky install",
"playwright:install": "npx playwright install && npx playwright install --with-deps chromium"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@biomejs/biome": "2.2.5",
"@biomejs/js-api": "^3.0.0",
"@biomejs/wasm-nodejs": "^2.2.5",
"@happy-dom/global-registrator": "^16.8.1",
"@size-limit/esbuild-why": "^11.2.0",
"@size-limit/preset-small-lib": "^11.2.0",
"@total-typescript/ts-reset": "^0.6.1",
"@types/node": "^22",
"@types/react": "^18.2.34",
"@types/svg-sprite": "^0.0.39",
"@vitest/browser": "^3.2.4",
"@vitest/coverage-v8": "^3.2.4",
"esbuild": "^0.25.10",
"husky": "^8.0.3",
"lint-staged": "^13.2.1",
"node-watch": "^0.7.3",
"npm-run-all": "^4.1.5",
"playwright": "^1.55.0",
"postcss": "^8.4.21",
"publint": "^0.3.14",
"render-jsx": "^0.2.4",
"rimraf": "^5.0.0",
"shipjs": "^0.27.0",
"size-limit": "^11.2.0",
"stylelint": "^15.4.0",
"stylelint-config-standard": "^32.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
"stylelint-order": "^6.0.3",
"svg-sprite": "^2.0.4",
"tsd": "^0.32.0",
"tsup": "^8.5.0",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"vite": "npm:rolldown-vite@latest",
"vitest": "^3.2.4"
},
"author": "Uploadcare Inc.",
"license": "MIT",
"dependencies": {
"@symbiotejs/symbiote": "^1.11.7",
"@uploadcare/cname-prefix": "^6.18.0",
"@uploadcare/image-shrink": "^6.18.0",
"@uploadcare/quality-insights": "^6.18.0",
"@uploadcare/upload-client": "^6.18.0",
"keyux": "^0.7.1"
},
"size-limit": [
{
"path": "dist/index.js",
"limit": "100 KB"
},
{
"path": "dist/env.js",
"limit": "1 KB"
},
{
"path": "dist/abstract/loadFileUploaderFrom.js",
"limit": "1 KB"
},
{
"path": "dist/index.ssr.js",
"limit": "10 KB"
},
{
"path": "web/file-uploader.min.js",
"limit": "100 KB"
},
{
"path": "web/file-uploader.iife.min.js",
"limit": "100 KB"
},
{
"path": "web/uc-cloud-image-editor.min.js",
"limit": "50 KB"
},
{
"path": "web/uc-file-uploader-regular.min.js",
"limit": "100 KB"
},
{
"path": "web/uc-file-uploader-inline.min.js",
"limit": "100 KB"
},
{
"path": "web/uc-file-uploader-minimal.min.js",
"limit": "100 KB"
},
{
"path": "web/uc-img.min.js",
"limit": "10 KB"
}
]
}