amis2/packages/amis/package.json

254 lines
6.7 KiB
JSON
Raw Normal View History

2022-06-01 15:06:00 +08:00
{
"name": "amis",
2024-11-01 10:50:54 +08:00
"version": "6.9.0",
2022-06-01 15:06:00 +08:00
"description": "一种MIS页面生成工具",
"main": "lib/index.js",
2022-06-16 21:07:14 +08:00
"module": "esm/index.js",
2022-06-28 16:15:46 +08:00
"types": "lib/index.d.ts",
2022-06-01 15:06:00 +08:00
"scripts": {
"test": "jest",
"update-snapshot": "jest --updateSnapshot",
2022-06-01 15:06:00 +08:00
"coverage": "jest --coverage",
"publish-to-internal": "sh build.sh && sh publish.sh",
"build": "npm run clean-dist && sh build.sh",
Mege Feat-X Into Master (#11252) * feat: Editor 支持插件弹出面板 (#11055) * feat: Editor 支持插件弹出面板 (#11059) * chore: 暴露 RendererThumb * feat: resultBox item项支持点击事件 (#11060) * feat: resultBox item项支持点击事件 * feat: resultBox item项支持点击事件 * feat: resultBox item项点击事件增加testid * feat: resultBox item项点击事件更新jest快照 --------- Co-authored-by: hezhihang <hezhihang@baidu.com> * chore: 调整 Page 渲染器导出方便外部覆盖 * chore: ConfirmBox 支持配置 onEntered 和 onExit 事件 * chore: checkboxes radios 选项 children 必须是数组且有长度才切到分组展示 * feat: 折叠面板,无标题时显示折叠箭头。组件存在于表单中,面板新增切换展示方式按钮 (#11067) * feat: 折叠面板,无标题时显示折叠箭头。组件存在于表单中,面板新增切换展示方式按钮 * feat: 调整面板组件默认值 * feat: 调整无标题时,折叠箭头样式。调整面板配置 * 更新jest快照 * feat: page侧栏支持左右位置 (#11090) Co-authored-by: hezhihang <hezhihang@baidu.com> * chore: checkboxes radios 选项 children 必须是数组且有长度才切到分组展示 * feat: AvailableRenderersPanel 支持外围扩展 * feat: AvailableRenderersPanel 支持外围扩展 * feat: editor 插件 scaffoldForm 支持异步获取 * chore: add cross-env * chore: 避免 Table 数据更新死循环 * chore: 调整 ts 定义 * feat: 给配置面板加些标记方便外围扩充 * chore: checkboxes radios 选项 children 必须是数组且有长度才切到分组展示 * chore: Options 相关逻辑支持外部扩展 * feat: mapping支持接口变量是records,提供外围扩充函数 (#11105) * feat: mapping支持接口变量是records 的情况 * feat: 提供外围扩充函数 * feat: 修改函数名 * feat: 补充props 类型定义 * chore: 调整用例 * feat: 自定义样式扩展 (#11140) Co-authored-by: hezhihang <hezhihang@baidu.com> * feat: tabs支持删除动作,外观样式支持主题 * typo error * chore: 支持更多的场景 * feat: 穿梭选择器增加点击选项事件 * feat: 锚点导航调整为sticky布局 (#11143) * feat: 锚点导航调整为sticky布局 * bugfix * 更新快照 * 更新单测 * 更新单测 * bugfix * 优化样式 --------- Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * 动作面板支持外部注册 (#11149) * 动作面板支持外部注册 * 修复someTree报错 * chore: debug 面板调整 (#11152) * feat:事件动作面板支持查看调用链 * feat: 新增autoCheckChildren和onlyChildren属性配置面板,更改穿梭框事件点击位置 * feat: 预留外围扩充函数 * fix: 调整文案和属性名 * 修复初始化弹窗问题 * fix:自定义样式根节点不生效、样式修改时schema更新不正确,tabs动作仅支持hash删除 (#11145) Co-authored-by: hezhihang <hezhihang@baidu.com> * feat: 日期\日期范围组件可配禁止输入 (#11197) * feat:验证器手机和电话号支持国家代号,数字框新增显示上下按钮,修改自定义样式实现。 (#11198) * fix: 穿梭器面板中onlyChildren属性默认开启 * feat: 验证器中手机号和电话号支持国家代号 * feat: 数字框编辑器新增显示上下按钮开关,修改自定义样式实现 * 修复插件重复注册&输入序号支持表达式 * 移除无用代码 * feat: tree支持节点行为配置、点击事件、虚拟列表高度、工具栏、操作栏等功能 * feat: 虚拟列表支持高度自适应 * feat: 虚拟列表支持高度自适应 * feat: 虚拟列表支持高度自适应 * feat: 虚拟列表支持高度自适应 * feat: 表格列新增textOverflow属性 * feat: 新增文本未超出,不呼出功能 * feat: 修改dom计算的位置 * feat: 增加限制条件 * feat: 删除sonTarget属性 * feat: 合并renderTextOver * feat: 留出外围扩充位置 * feat: 步骤条新增iconPositon属性,修复简单模式下箭头布局错乱 (#11250) * feat: 替换按钮配置面板自定义样式 * feat: 步骤条新增iconPositon属性,修复简单模式下箭头布局错乱 --------- Co-authored-by: hzh11012 <43038692+hzh11012@users.noreply.github.com> Co-authored-by: hezhihang <hezhihang@baidu.com> Co-authored-by: F-jianchao <161407305+F-jianchao@users.noreply.github.com> Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com> Co-authored-by: fujianchao <fujianchao@baidu.com> Co-authored-by: qkiroc <30946345+qkiroc@users.noreply.github.com> Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> Co-authored-by: z418577198 <418577198@qq.com> Co-authored-by: lvxiaojiao <lvxiaojiao@baidu.com> Co-authored-by: zhangzhijun03 <zhangzhijun03@baidu.com> Co-authored-by: Allen <yupeng.fe@qq.com>
2024-11-25 12:55:00 +08:00
"build-esm": "npm run clean-dist && cross-env NODE_ENV=production rollup -c rollup.esm.config.js",
2022-06-01 15:06:00 +08:00
"prettier": "prettier --write '{src,scss,examples}/**/**/*.{js,jsx,ts,tsx,scss,json}'",
"build-schemas": "ts-node -O '{\"target\":\"es6\"}' ../../scripts/build-schemas.ts",
"clean-dist": "rimraf lib/** esm/**"
2022-06-01 15:06:00 +08:00
},
"repository": {
"type": "git",
"url": "https://github.com/baidu/amis.git"
},
"keywords": [
"react",
"amis",
"mis",
"renderer",
"json",
"schema"
],
"author": "baidu",
"license": "Apache-2.0",
"licenses": [
{
"type": "Apache-2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
"dependencies": {
2024-11-01 10:50:54 +08:00
"amis-core": "^6.9.0",
"amis-ui": "^6.9.0",
2022-06-01 15:06:00 +08:00
"attr-accept": "2.2.2",
"blueimp-canvastoblob": "2.1.0",
"classnames": "2.3.2",
"downshift": "6.1.12",
"echarts": "5.5.1",
2022-06-01 15:06:00 +08:00
"echarts-stat": "^1.2.0",
"echarts-wordcloud": "^2.1.0",
"exceljs": "^4.4.0",
2022-06-01 15:06:00 +08:00
"file-saver": "^2.0.2",
"hls.js": "1.1.3",
"hoist-non-react-statics": "^3.3.2",
"hotkeys-js": "^3.8.7",
"immutability-helper": "^3.1.1",
"jsbarcode": "^3.11.5",
"keycode": "^2.2.1",
"lodash": "^4.17.15",
"match-sorter": "^6.3.1",
"mobx": "^4.5.0",
"mobx-react": "^6.3.1",
"mobx-state-tree": "^3.17.3",
"moment": "^2.19.4",
2023-11-01 09:09:59 +08:00
"moment-timezone": "^0.5.34",
2022-06-01 15:06:00 +08:00
"mpegts.js": "^1.6.10",
"office-viewer": "*",
2022-06-01 15:06:00 +08:00
"prop-types": "^15.6.1",
"qrcode.react": "^3.1.0",
2022-06-01 15:06:00 +08:00
"react-cropper": "^2.1.8",
"react-dropzone": "^11.4.2",
"react-intersection-observer": "9.5.2",
2022-06-01 15:06:00 +08:00
"react-json-view": "1.21.3",
"react-transition-group": "4.4.2",
"sortablejs": "1.15.0",
2022-06-01 15:06:00 +08:00
"tslib": "^2.3.1",
"video-react": "0.15.0",
"xlsx": "^0.18.5"
2022-06-01 15:06:00 +08:00
},
"devDependencies": {
Mege Feat-X Into Master (#11252) * feat: Editor 支持插件弹出面板 (#11055) * feat: Editor 支持插件弹出面板 (#11059) * chore: 暴露 RendererThumb * feat: resultBox item项支持点击事件 (#11060) * feat: resultBox item项支持点击事件 * feat: resultBox item项支持点击事件 * feat: resultBox item项点击事件增加testid * feat: resultBox item项点击事件更新jest快照 --------- Co-authored-by: hezhihang <hezhihang@baidu.com> * chore: 调整 Page 渲染器导出方便外部覆盖 * chore: ConfirmBox 支持配置 onEntered 和 onExit 事件 * chore: checkboxes radios 选项 children 必须是数组且有长度才切到分组展示 * feat: 折叠面板,无标题时显示折叠箭头。组件存在于表单中,面板新增切换展示方式按钮 (#11067) * feat: 折叠面板,无标题时显示折叠箭头。组件存在于表单中,面板新增切换展示方式按钮 * feat: 调整面板组件默认值 * feat: 调整无标题时,折叠箭头样式。调整面板配置 * 更新jest快照 * feat: page侧栏支持左右位置 (#11090) Co-authored-by: hezhihang <hezhihang@baidu.com> * chore: checkboxes radios 选项 children 必须是数组且有长度才切到分组展示 * feat: AvailableRenderersPanel 支持外围扩展 * feat: AvailableRenderersPanel 支持外围扩展 * feat: editor 插件 scaffoldForm 支持异步获取 * chore: add cross-env * chore: 避免 Table 数据更新死循环 * chore: 调整 ts 定义 * feat: 给配置面板加些标记方便外围扩充 * chore: checkboxes radios 选项 children 必须是数组且有长度才切到分组展示 * chore: Options 相关逻辑支持外部扩展 * feat: mapping支持接口变量是records,提供外围扩充函数 (#11105) * feat: mapping支持接口变量是records 的情况 * feat: 提供外围扩充函数 * feat: 修改函数名 * feat: 补充props 类型定义 * chore: 调整用例 * feat: 自定义样式扩展 (#11140) Co-authored-by: hezhihang <hezhihang@baidu.com> * feat: tabs支持删除动作,外观样式支持主题 * typo error * chore: 支持更多的场景 * feat: 穿梭选择器增加点击选项事件 * feat: 锚点导航调整为sticky布局 (#11143) * feat: 锚点导航调整为sticky布局 * bugfix * 更新快照 * 更新单测 * 更新单测 * bugfix * 优化样式 --------- Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * 动作面板支持外部注册 (#11149) * 动作面板支持外部注册 * 修复someTree报错 * chore: debug 面板调整 (#11152) * feat:事件动作面板支持查看调用链 * feat: 新增autoCheckChildren和onlyChildren属性配置面板,更改穿梭框事件点击位置 * feat: 预留外围扩充函数 * fix: 调整文案和属性名 * 修复初始化弹窗问题 * fix:自定义样式根节点不生效、样式修改时schema更新不正确,tabs动作仅支持hash删除 (#11145) Co-authored-by: hezhihang <hezhihang@baidu.com> * feat: 日期\日期范围组件可配禁止输入 (#11197) * feat:验证器手机和电话号支持国家代号,数字框新增显示上下按钮,修改自定义样式实现。 (#11198) * fix: 穿梭器面板中onlyChildren属性默认开启 * feat: 验证器中手机号和电话号支持国家代号 * feat: 数字框编辑器新增显示上下按钮开关,修改自定义样式实现 * 修复插件重复注册&输入序号支持表达式 * 移除无用代码 * feat: tree支持节点行为配置、点击事件、虚拟列表高度、工具栏、操作栏等功能 * feat: 虚拟列表支持高度自适应 * feat: 虚拟列表支持高度自适应 * feat: 虚拟列表支持高度自适应 * feat: 虚拟列表支持高度自适应 * feat: 表格列新增textOverflow属性 * feat: 新增文本未超出,不呼出功能 * feat: 修改dom计算的位置 * feat: 增加限制条件 * feat: 删除sonTarget属性 * feat: 合并renderTextOver * feat: 留出外围扩充位置 * feat: 步骤条新增iconPositon属性,修复简单模式下箭头布局错乱 (#11250) * feat: 替换按钮配置面板自定义样式 * feat: 步骤条新增iconPositon属性,修复简单模式下箭头布局错乱 --------- Co-authored-by: hzh11012 <43038692+hzh11012@users.noreply.github.com> Co-authored-by: hezhihang <hezhihang@baidu.com> Co-authored-by: F-jianchao <161407305+F-jianchao@users.noreply.github.com> Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com> Co-authored-by: fujianchao <fujianchao@baidu.com> Co-authored-by: qkiroc <30946345+qkiroc@users.noreply.github.com> Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> Co-authored-by: z418577198 <418577198@qq.com> Co-authored-by: lvxiaojiao <lvxiaojiao@baidu.com> Co-authored-by: zhangzhijun03 <zhangzhijun03@baidu.com> Co-authored-by: Allen <yupeng.fe@qq.com>
2024-11-25 12:55:00 +08:00
"cross-env": "^7.0.3",
2022-06-01 15:06:00 +08:00
"@fortawesome/fontawesome-free": "^6.1.1",
"@rollup/plugin-commonjs": "^22.0.2",
2022-06-06 15:15:37 +08:00
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^14.1.0",
"@rollup/plugin-typescript": "^8.3.4",
2022-06-06 15:15:37 +08:00
"@svgr/rollup": "^6.2.1",
"@testing-library/dom": "8.20.1",
2023-09-19 14:54:36 +08:00
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
2022-06-01 15:06:00 +08:00
"@types/async": "^2.0.45",
"@types/codemirror": "5.60.10",
2022-06-01 15:06:00 +08:00
"@types/echarts": "^4.9.2",
"@types/file-saver": "^2.0.1",
"@types/history": "^4.6.0",
"@types/hoist-non-react-statics": "^3.3.1",
2022-06-06 15:15:37 +08:00
"@types/jest": "^28.1.0",
2022-06-01 15:06:00 +08:00
"@types/json-schema": "^7.0.11",
"@types/lodash": "^4.14.175",
"@types/markdown-it": "^12.2.1",
"@types/mkdirp": "^1.0.1",
"@types/node": "^14.0.24",
2022-06-01 15:06:00 +08:00
"@types/papaparse": "^5.2.2",
"@types/prop-types": "^15.5.2",
"@types/qs": "^6.5.1",
"@types/react": "^18.0.24",
2022-06-01 15:06:00 +08:00
"@types/react-color": "^3.0.5",
"@types/react-dom": "^18.0.8",
2022-06-01 15:06:00 +08:00
"@types/react-onclickoutside": "^6.0.2",
"@types/react-router-dom": "^5.3.3",
2023-09-19 14:54:36 +08:00
"@types/react-test-renderer": "^18.0.0",
2022-06-01 15:06:00 +08:00
"@types/react-transition-group": "4.4.3",
"@types/sortablejs": "^1.3.32",
"@types/tinymce": "^4.5.24",
"axios": "0.25.0",
"babel-plugin-import": "^1.13.8",
2022-06-01 15:06:00 +08:00
"bce-sdk-js": "^0.2.9",
"concurrently": "^7.3.0",
2022-06-01 15:06:00 +08:00
"copy-to-clipboard": "3.3.1",
"core-js": "^3.21.0",
"css": "3.0.0",
"fs-walk": "0.0.2",
"glob": "^7.2.0",
"history": "^4.7.2",
"jest": "^29.0.3",
2022-06-01 15:06:00 +08:00
"jest-canvas-mock": "^2.3.0",
"jest-environment-jsdom": "^29.0.3",
2022-06-01 15:06:00 +08:00
"js-yaml": "^4.1.0",
"json5": "^2.2.1",
"marked": ">=4.0.12",
"mkdirp": "^1.0.4",
"postcss": "^8.4.6",
"postcss-cli": "^9.1.0",
"postcss-custom-properties": "^12.1.5",
"prettier": "^2.6.1",
"pretty-quick": "^3.1.1",
"prismjs": "^1.25.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
2022-06-01 15:06:00 +08:00
"react-router": "5.2.1",
"react-router-dom": "5.3.0",
"react-test-renderer": "^18.0.0",
"regexp.prototype.flags": "1.5.0",
2022-06-01 15:06:00 +08:00
"rimraf": "^3.0.2",
"rollup": "^2.79.1",
2022-06-01 15:06:00 +08:00
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-babel": "^4.4.0",
2022-06-01 15:06:00 +08:00
"rollup-plugin-license": "^2.7.0",
"ts-jest": "^29.0.2",
2022-06-06 15:15:37 +08:00
"ts-json-schema-generator": "0.96.0",
"ts-node": "^10.5.0",
2022-06-01 15:06:00 +08:00
"typescript": "^4.6.4"
},
"files": [
"lib",
"esm",
"sdk",
"schema.json",
"revision.json"
2022-06-01 15:06:00 +08:00
],
2022-06-16 21:07:14 +08:00
"exports": {
".": {
"require": "./lib/index.js",
"import": "./esm/index.js"
},
"./lib/helper.css": {
2023-03-21 12:41:36 +08:00
"style": "./lib/helper.css",
"require": "./lib/helper.css",
"import": "./lib/helper.css"
},
"./lib/themes/*": {
2023-03-21 12:41:36 +08:00
"style": "./lib/themes/*",
"require": "./lib/themes/*",
"import": "./lib/themes/*"
},
2022-06-16 21:07:14 +08:00
"./lib/*": {
"require": "./lib/*.js",
"import": "./esm/*.js"
},
"./sdk/*": {
2023-03-21 12:41:36 +08:00
"style": [
"./sdk/*"
],
"require": [
"./sdk/*"
],
"import": [
"./sdk/*"
]
},
"./schema.json": {
"require": [
"./schema.json"
],
"import": [
"./schema.json"
]
2022-06-16 21:07:14 +08:00
}
},
2022-06-01 15:06:00 +08:00
"jest": {
"testEnvironment": "jsdom",
"coverageReporters": [
"text",
"cobertura"
],
2022-06-01 15:06:00 +08:00
"collectCoverageFrom": [
"src/**/*"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"\\.(ts|tsx)$": [
"ts-jest",
{
"diagnostics": false
}
]
2022-06-01 15:06:00 +08:00
},
"setupFiles": [
"jest-canvas-mock"
],
"testRegex": "/.*\\.test\\.(ts|tsx|js)$",
"moduleNameMapper": {
2022-06-02 10:00:09 +08:00
"\\.(css|less|sass|scss)$": "<rootDir>/../../__mocks__/styleMock.js",
"\\.(svg)$": "<rootDir>/../../__mocks__/svgMock.js",
2022-06-02 23:40:23 +08:00
"\\.svg\\.js$": "<rootDir>/../../__mocks__/svgJsMock.js",
"^amis\\-core$": "<rootDir>/../amis-core/src/index.tsx",
"^amis\\-ui$": "<rootDir>/../amis-ui/src/index.tsx",
"^amis\\-ui/lib/(.*)$": "<rootDir>/../amis-ui/src/$1",
"^amis\\-formula$": "<rootDir>/../amis-formula/src/index.ts"
2022-06-01 15:06:00 +08:00
},
"setupFilesAfterEnv": [
2022-06-02 10:00:09 +08:00
"<rootDir>/../amis-core/__tests__/jest.setup.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/.rollup.cache/"
],
"snapshotFormat": {
"escapeString": false,
"printBasicPrototype": false
}
2022-06-01 15:06:00 +08:00
},
"peerDependencies": {
"amis-core": "*",
2022-09-01 22:09:07 +08:00
"amis-ui": "*",
"office-viewer": "*",
2022-09-01 22:09:07 +08:00
"react": ">=16.8.6",
"react-dom": ">=16.8.6"
2022-06-07 14:23:32 +08:00
},
"gitHead": "37d23b4a8eb1c663bc38e8dd9040889ea1526ec4"
2024-05-31 17:40:05 +08:00
}