adtec-core-package 3.1.8 → 3.2.0

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.
Files changed (62) hide show
  1. package/.idea/codeStyles/Project.xml +61 -0
  2. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  3. package/.idea/misc.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/vcs.xml +6 -0
  6. package/.idea//345/211/215/347/253/257/346/240/270/345/277/203/345/214/205.iml +8 -0
  7. package/package.json +2 -1
  8. package/src/assets/style/index.less +30 -42
  9. package/src/assets/style/scrollbar-classic.less +105 -0
  10. package/src/assets/style/scrollbar-classic.scss +105 -0
  11. package/src/components/ElCardList.vue +7 -1
  12. package/src/components/Scrollbars/ElScrollbars.vue +10 -2
  13. package/src/components/editor-main/src/assets/styles/_variables.less +1 -1
  14. package/src/components/upload/DocxJsViewer.vue +2 -16
  15. package/src/components/upload/FileView.vue +7 -2
  16. package/src/components/upload/OfficePreview.vue +9 -1
  17. package/src/components/upload/PdfJsViewer.vue +2 -2
  18. package/src/config/VxeTableConfig.ts +2 -2
  19. package/src/css/elementUI/common/var.scss +4 -4
  20. package/src/css/elementUI/mixins/mixins.scss +4 -28
  21. package/src/css/elementUI/scrollbar.scss +20 -5
  22. package/src/css/vxeTableUI/components/table.scss +22 -29
  23. package/src/utils/excelPreviewUtil.ts +219 -45
  24. package/src/utils/officePreviewUtil.ts +6 -0
  25. package/.claude/skills/gitnexus/gitnexus-cli/SKILL.md +0 -83
  26. package/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md +0 -89
  27. package/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md +0 -78
  28. package/.claude/skills/gitnexus/gitnexus-guide/SKILL.md +0 -64
  29. package/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +0 -97
  30. package/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md +0 -121
  31. package/.editorconfig +0 -6
  32. package/.prettierrc.json +0 -7
  33. package/.vscode/extensions.json +0 -8
  34. package/AGENTS.md +0 -43
  35. package/CLAUDE.md +0 -43
  36. package/adtec-core-package/adtec-core-package.css +0 -1
  37. package/adtec-core-package/adtec-core-package.js +0 -41216
  38. package/adtec-core-package/adtec-core-package.umd.cjs +0 -87
  39. package/adtec-core-package/favicon.ico +0 -0
  40. package/adtec-core-package-3.1.7.tgz +0 -0
  41. package/auto-imports.d.ts +0 -299
  42. package/env.d.ts +0 -1
  43. package/eslint.config.js +0 -56
  44. package/index.html +0 -13
  45. package/package/.editorconfig +0 -6
  46. package/package/adtec-core-package/adtec-core-package.css +0 -1
  47. package/package/adtec-core-package/adtec-core-package.js +0 -41216
  48. package/package/adtec-core-package/adtec-core-package.umd.cjs +0 -87
  49. package/package/adtec-core-package/favicon.ico +0 -0
  50. package/package/index.html +0 -13
  51. package/package/prebuilt/umo-editor/favicon.ico +0 -0
  52. package/package/prebuilt/umo-editor/umo-editor.css +0 -1
  53. package/package/public/favicon.ico +0 -0
  54. package/package/src/assets/base.css +0 -86
  55. package/package/src/assets/main.css +0 -35
  56. package/package/src/components/editor-main/src/extensions/bookmark.js +0 -110
  57. package/prebuilt/umo-editor/umo-editor.js.map +0 -1
  58. package/tsconfig.app.json +0 -12
  59. package/tsconfig.json +0 -11
  60. package/tsconfig.node.json +0 -18
  61. package/vite.config.ts +0 -46
  62. package/vite.config.umo.ts +0 -81
package/tsconfig.app.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "@vue/tsconfig/tsconfig.dom.json",
3
- "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
- "exclude": ["src/**/__tests__/*"],
5
- "compilerOptions": {
6
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
7
-
8
- "paths": {
9
- "@/*": ["./src/*"]
10
- }
11
- }
12
- }
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- {
5
- "path": "./tsconfig.node.json"
6
- },
7
- {
8
- "path": "./tsconfig.app.json"
9
- }
10
- ]
11
- }
@@ -1,18 +0,0 @@
1
- {
2
- "extends": "@tsconfig/node22/tsconfig.json",
3
- "include": [
4
- "vite.config.*",
5
- "vitest.config.*",
6
- "cypress.config.*",
7
- "nightwatch.conf.*",
8
- "playwright.config.*"
9
- ],
10
- "compilerOptions": {
11
- "noEmit": true,
12
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
13
-
14
- "module": "ESNext",
15
- "moduleResolution": "Bundler",
16
- "types": ["node"]
17
- }
18
- }
package/vite.config.ts DELETED
@@ -1,46 +0,0 @@
1
- import { fileURLToPath, URL } from 'node:url'
2
-
3
- import { defineConfig } from 'vite'
4
- import vue from '@vitejs/plugin-vue'
5
- import vueJsx from '@vitejs/plugin-vue-jsx'
6
- import vueDevTools from 'vite-plugin-vue-devtools'
7
-
8
- // https://vite.dev/config/
9
- export default defineConfig({
10
- plugins: [
11
- vue(),
12
- vueJsx(),
13
- vueDevTools(),
14
- ],
15
- build: {
16
- outDir: "adtec-core-package", //输出文件名称
17
- lib: {
18
- entry: "./src/packages/index.ts", //指定组件编译入口文件
19
- name: "adtec-core-package",
20
- fileName: "adtec-core-package",
21
- }, //库编译模式配置
22
- rollupOptions: {
23
- // 确保外部化处理那些你不想打包进库的依赖
24
- external: ["vue"],
25
- output: {
26
- // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
27
- globals: {
28
- vue: "Vue",
29
- },
30
- },
31
- }, // rollup打包配置
32
- },
33
- resolve: {
34
- alias: {
35
- '@': fileURLToPath(new URL('./src', import.meta.url))
36
- },
37
- },
38
- css: {
39
- preprocessorOptions: {
40
- less: {
41
- javascriptEnabled: true,
42
- modifyVars: { '@prefix': 'umo' },
43
- },
44
- },
45
- },
46
- })
@@ -1,81 +0,0 @@
1
- import path from 'node:path'
2
- import { fileURLToPath, URL } from 'node:url'
3
-
4
- import vue from '@vitejs/plugin-vue'
5
- import vueJsx from '@vitejs/plugin-vue-jsx'
6
- import AutoImport from 'unplugin-auto-import/vite'
7
- import { defineConfig } from 'vite'
8
- import { coreUmoResolveConfig, coreUmoVitePlugins } from './vite/umoIntegration'
9
-
10
- const packageRoot = fileURLToPath(new URL('.', import.meta.url))
11
- const editorSrcRoot = path.join(packageRoot, 'src/components/editor-main/src')
12
- const composables = (name) => path.join(editorSrcRoot, 'composables', name)
13
- const umoResolve = coreUmoResolveConfig()
14
-
15
- /** prebuilt 不内联,由宿主 node_modules 提供单例(避免 Yjs 双实例) */
16
- const UMO_PEER_EXTERNAL = [
17
- 'vue',
18
- 'vue-i18n',
19
- 'yjs',
20
- 'y-protocols',
21
- 'y-prosemirror',
22
- '@tiptap/y-tiptap',
23
- ]
24
-
25
- function isUmoPeerExternal(id: string) {
26
- return UMO_PEER_EXTERNAL.some((pkg) => id === pkg || id.startsWith(`${pkg}/`))
27
- }
28
-
29
- export default defineConfig({
30
- plugins: [
31
- ...coreUmoVitePlugins(),
32
- AutoImport({
33
- imports: [
34
- 'vue',
35
- '@vueuse/core',
36
- { from: composables('state.js'), imports: ['useState'] },
37
- { from: composables('dialog.js'), imports: ['useAlert', 'useConfirm', 'useMessage'] },
38
- { from: composables('select.js'), imports: ['useSelect'] },
39
- { from: composables('copy.js'), imports: ['useCopy'] },
40
- { from: composables('hotkeys.js'), imports: ['useHotkeys', 'removeAllHotkeys'] },
41
- { from: composables('popup.js'), imports: ['usePopup'] },
42
- { from: composables('i18n.js'), imports: ['useI18n', 'l'] },
43
- ],
44
- dts: false,
45
- }),
46
- vue(),
47
- vueJsx(),
48
- ],
49
- resolve: {
50
- ...umoResolve,
51
- alias: [...umoResolve.alias],
52
- },
53
- css: {
54
- preprocessorOptions: {
55
- less: {
56
- javascriptEnabled: true,
57
- modifyVars: { '@prefix': 'umo' },
58
- },
59
- },
60
- },
61
- build: {
62
- outDir: 'prebuilt/umo-editor',
63
- emptyOutDir: true,
64
- lib: {
65
- entry: fileURLToPath(
66
- new URL('./src/components/editor-main/umo-build-entry.js', import.meta.url),
67
- ),
68
- name: 'UmoEditorBundle',
69
- formats: ['es'],
70
- fileName: 'umo-editor',
71
- },
72
- rollupOptions: {
73
- external: isUmoPeerExternal,
74
- output: {
75
- assetFileNames: 'umo-editor.[ext]',
76
- },
77
- },
78
- sourcemap: true,
79
- chunkSizeWarningLimit: 4000,
80
- },
81
- })