amis/packages/office-viewer/package.json
吴多益 3941b21e7e
feat: office-view 支持内嵌字体;数学公式;初步支持 textbox;修复 highlight 和加粗渲染不正确问题 (#6459)
* 初步支持 textbox

* 开始实现内嵌字体

* 支持内嵌字体

* 避免 style 导致可能的 xss

* 支持公式渲染

* 修复 highlight 和加粗渲染不正确问题

* 删掉不用的文件

* 修复编译报错
2023-03-23 20:53:51 +08:00

93 lines
2.3 KiB
JSON

{
"name": "office-viewer",
"version": "0.1.0",
"description": "office 文档在线预览",
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"scripts": {
"dev": "vite",
"build": "npm run clean-dist && cross-env NODE_ENV=production rollup -c ",
"test": "jest",
"lib": "npm run clean-dist && cross-env NODE_ENV=production IS_LIB=1 rollup -c",
"coverage": "jest --coverage",
"declaration": "tsc --project tsconfig-for-declaration.json --allowJs --declaration --emitDeclarationOnly --declarationDir ./lib --rootDir ./src",
"clean-dist": "rimraf lib/** esm/**",
"xsd2ts": "cd tools && ts-node --transpileOnly xsd2ts.ts"
},
"exports": {
".": {
"require": "./lib/index.js",
"import": "./esm/index.js"
},
"./lib/*": {
"require": "./lib/*.js",
"import": "./esm/*.js"
}
},
"files": [
"lib",
"esm"
],
"keywords": [
"office",
"docx"
],
"license": "Apache 2.0",
"bugs": {
"url": "https://github.com/baidu/amis/issues"
},
"homepage": "https://github.com/baidu/amis#readme",
"dependencies": {
"fflate": "^0.7.4"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^14.1.0",
"@rollup/plugin-typescript": "^8.3.4",
"@types/jest": "^28.1.0",
"amis-formula": "^2.7.2",
"jest": "^29.0.3",
"fast-xml-parser": "4.1.3",
"ts-jest": "^29.0.2",
"ts-loader": "^9.2.3",
"ts-node": "^10.4.0",
"typescript": "^4.3.5",
"rollup": "^2.60.2",
"rollup-plugin-terser": "^7.0.2",
"vite": "^3.2.2"
},
"jest": {
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"src/**/*"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"\\.(ts|tsx)$": [
"ts-jest",
{
"diagnostics": false
}
]
},
"setupFiles": [
"jest-canvas-mock"
],
"testRegex": "/.*\\.test\\.(ts|tsx|js)$",
"moduleNameMapper": {
"\\.(css|less|sass|scss)$": "<rootDir>/../__mocks__/styleMock.js",
"\\.(svg)$": "<rootDir>/../__mocks__/svgMock.js"
},
"snapshotFormat": {
"escapeString": false,
"printBasicPrototype": false
}
}
}