@allbluecn/web-app 0.7.0 → 0.7.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allbluecn/web-app",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -87,8 +87,6 @@
|
|
|
87
87
|
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
88
88
|
"@iconify/react": "^6.0.2",
|
|
89
89
|
"@lobehub/icons": "^5.16.0",
|
|
90
|
-
"@open-file-viewer/core": "^0.1.43",
|
|
91
|
-
"@open-file-viewer/react": "^0.1.43",
|
|
92
90
|
"@prisma/client": "^7.8.0",
|
|
93
91
|
"@radix-ui/react-dialog": "^1.1.23",
|
|
94
92
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
@@ -178,7 +176,6 @@
|
|
|
178
176
|
"next-themes": "^0.4.6",
|
|
179
177
|
"nitro": "3.0.260603-beta",
|
|
180
178
|
"ogl": "^1.0.11",
|
|
181
|
-
"open-file-viewer-workspace": "github:xushanpei/open-file-viewer",
|
|
182
179
|
"pdfjs-dist": "^6.3.289",
|
|
183
180
|
"pinyin-pro": "^3.29.3",
|
|
184
181
|
"prisma": "^7.8.0",
|
|
@@ -137,7 +137,7 @@ export function FilePreview({
|
|
|
137
137
|
className: "ofv-toolbar-icon-button",
|
|
138
138
|
// 标题栏存在时才显示按钮:open-file-viewer 在插件渲染完成(setCommandSupport)
|
|
139
139
|
// 与翻页/缩放时会重新求值 hidden 函数
|
|
140
|
-
hidden: (ctx) => !ctx.viewport.querySelector(TITLE_SELECTORS),
|
|
140
|
+
hidden: (ctx: any) => !ctx.viewport.querySelector(TITLE_SELECTORS),
|
|
141
141
|
onClick: () => setShowTitle((v) => !v),
|
|
142
142
|
});
|
|
143
143
|
}
|
|
@@ -95,14 +95,14 @@ export const SDK_GROUPS: SdkGroup[] = [
|
|
|
95
95
|
"items": [
|
|
96
96
|
{
|
|
97
97
|
"name": "@allbluecn/web-app",
|
|
98
|
-
"version": "v0.7.
|
|
98
|
+
"version": "v0.7.2",
|
|
99
99
|
"lastUpdate": "Sep 3, 2026",
|
|
100
100
|
"source": "apps/web/package.json",
|
|
101
101
|
"docsUrl": "https://github.com/allbluecn/allblue"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"name": "@allbluecn/kernel",
|
|
105
|
-
"version": "v0.
|
|
105
|
+
"version": "v0.4.0",
|
|
106
106
|
"lastUpdate": "Sep 3, 2026",
|
|
107
107
|
"source": "packages/kernel/package.json",
|
|
108
108
|
"docsUrl": "https://github.com/allbluecn/allblue"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare module '@open-file-viewer/react' {
|
|
2
|
+
export const FileViewer: React.FC<any>
|
|
3
|
+
}
|
|
4
|
+
declare module '@open-file-viewer/core' {
|
|
5
|
+
export const imagePlugin: any
|
|
6
|
+
export const textPlugin: any
|
|
7
|
+
export const pdfPlugin: any
|
|
8
|
+
export const officePlugin: any
|
|
9
|
+
export const archivePlugin: any
|
|
10
|
+
export const audioPlugin: any
|
|
11
|
+
export const videoPlugin: any
|
|
12
|
+
export const epubPlugin: any
|
|
13
|
+
export type PreviewToolbarCustomAction = any
|
|
14
|
+
}
|