@allbluecn/web-app 0.27.40 → 0.27.41

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.27.40",
3
+ "version": "0.27.41",
4
4
  "license": "AGPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "files": [
@@ -151,10 +151,13 @@ beforeEach(() => {
151
151
  bridge.release.mockResolvedValue(undefined)
152
152
  // jsdom 无 webview 元素:拦截 createElement("webview")
153
153
  origCreate = document.createElement.bind(document)
154
- vi.spyOn(document, "createElement").mockImplementation((tag: string) => {
154
+ // mockImplementation 的参数签名须匹配 createElement 重载表("webview" 专属
155
+ // WebviewTag 返回,@types/react 19.3+)——整体函数 cast 放宽,双端(@types/react
156
+ // lock 版本差异)typecheck 稳健。
157
+ vi.spyOn(document, "createElement").mockImplementation(((tag: string) => {
155
158
  if (tag === "webview") return makeMockWebview() as unknown as HTMLElement
156
159
  return origCreate(tag)
157
- })
160
+ }) as unknown as typeof document.createElement)
158
161
  })
159
162
 
160
163
  afterEach(() => {
@@ -112,7 +112,7 @@ export const SDK_GROUPS: SdkGroup[] = [
112
112
  "items": [
113
113
  {
114
114
  "name": "@allbluecn/web-app",
115
- "version": "v0.27.40",
115
+ "version": "v0.27.41",
116
116
  "lastUpdate": "Nov 19, 2026",
117
117
  "source": "apps/web/package.json",
118
118
  "docsUrl": "https://github.com/allbluecn/allblue"
@@ -49,6 +49,7 @@ import { Route as ApiHealthRouteImport } from './routes/api/health'
49
49
  import { Route as ApiSearchRouteImport } from './routes/api/search'
50
50
  import { Route as ApiStoryAiRouteImport } from './routes/api/story-ai'
51
51
  import { Route as CollectTokenRouteRouteImport } from './routes/collect/$token/route'
52
+ import { Route as DevGalleryRouteImport } from './routes/dev/gallery'
52
53
  import { Route as InviteTokenRouteRouteImport } from './routes/invite/$token/route'
53
54
  import { Route as ServerAiStreamRouteImport } from './routes/server/ai-stream'
54
55
  import { Route as ServerWsRouteImport } from './routes/server/ws'
@@ -406,6 +407,11 @@ const CollectTokenRouteRoute = CollectTokenRouteRouteImport.update({
406
407
  } as any).lazy(() =>
407
408
  import('./routes/collect/$token/route.lazy').then((d) => d.Route),
408
409
  )
410
+ const DevGalleryRoute = DevGalleryRouteImport.update({
411
+ id: '/dev/gallery',
412
+ path: '/dev/gallery',
413
+ getParentRoute: () => rootRouteImport,
414
+ } as any)
409
415
  const InviteTokenRouteRoute = InviteTokenRouteRouteImport.update({
410
416
  id: '/invite/$token',
411
417
  path: '/invite/$token',
@@ -1197,6 +1203,7 @@ export interface FileRoutesByFullPath {
1197
1203
  '/api/health': typeof ApiHealthRoute
1198
1204
  '/api/search': typeof ApiSearchRoute
1199
1205
  '/api/story-ai': typeof ApiStoryAiRoute
1206
+ '/dev/gallery': typeof DevGalleryRoute
1200
1207
  '/server/ai-stream': typeof ServerAiStreamRoute
1201
1208
  '/server/ws': typeof ServerWsRoute
1202
1209
  '/$lang/docs/$': typeof LangDocsSplatRouteRoute
@@ -1336,6 +1343,7 @@ export interface FileRoutesByTo {
1336
1343
  '/api/health': typeof ApiHealthRoute
1337
1344
  '/api/search': typeof ApiSearchRoute
1338
1345
  '/api/story-ai': typeof ApiStoryAiRoute
1346
+ '/dev/gallery': typeof DevGalleryRoute
1339
1347
  '/server/ai-stream': typeof ServerAiStreamRoute
1340
1348
  '/server/ws': typeof ServerWsRoute
1341
1349
  '/$lang/docs/$': typeof LangDocsSplatRouteRoute
@@ -1478,6 +1486,7 @@ export interface FileRoutesById {
1478
1486
  '/api/health': typeof ApiHealthRoute
1479
1487
  '/api/search': typeof ApiSearchRoute
1480
1488
  '/api/story-ai': typeof ApiStoryAiRoute
1489
+ '/dev/gallery': typeof DevGalleryRoute
1481
1490
  '/server/ai-stream': typeof ServerAiStreamRoute
1482
1491
  '/server/ws': typeof ServerWsRoute
1483
1492
  '/$lang/docs/$': typeof LangDocsSplatRouteRoute
@@ -1626,6 +1635,7 @@ export interface FileRouteTypes {
1626
1635
  | '/api/health'
1627
1636
  | '/api/search'
1628
1637
  | '/api/story-ai'
1638
+ | '/dev/gallery'
1629
1639
  | '/server/ai-stream'
1630
1640
  | '/server/ws'
1631
1641
  | '/$lang/docs/$'
@@ -1765,6 +1775,7 @@ export interface FileRouteTypes {
1765
1775
  | '/api/health'
1766
1776
  | '/api/search'
1767
1777
  | '/api/story-ai'
1778
+ | '/dev/gallery'
1768
1779
  | '/server/ai-stream'
1769
1780
  | '/server/ws'
1770
1781
  | '/$lang/docs/$'
@@ -1906,6 +1917,7 @@ export interface FileRouteTypes {
1906
1917
  | '/api/health'
1907
1918
  | '/api/search'
1908
1919
  | '/api/story-ai'
1920
+ | '/dev/gallery'
1909
1921
  | '/server/ai-stream'
1910
1922
  | '/server/ws'
1911
1923
  | '/$lang/docs/$'
@@ -2030,6 +2042,7 @@ export interface RootRouteChildren {
2030
2042
  ApiHealthRoute: typeof ApiHealthRoute
2031
2043
  ApiSearchRoute: typeof ApiSearchRoute
2032
2044
  ApiStoryAiRoute: typeof ApiStoryAiRoute
2045
+ DevGalleryRoute: typeof DevGalleryRoute
2033
2046
  ServerAiStreamRoute: typeof ServerAiStreamRoute
2034
2047
  ServerWsRoute: typeof ServerWsRoute
2035
2048
  LangDocsSplatRouteRoute: typeof LangDocsSplatRouteRoute
@@ -2337,6 +2350,13 @@ declare module '@tanstack/react-router' {
2337
2350
  preLoaderRoute: typeof CollectTokenRouteRouteImport
2338
2351
  parentRoute: typeof rootRouteImport
2339
2352
  }
2353
+ '/dev/gallery': {
2354
+ id: '/dev/gallery'
2355
+ path: '/dev/gallery'
2356
+ fullPath: '/dev/gallery'
2357
+ preLoaderRoute: typeof DevGalleryRouteImport
2358
+ parentRoute: typeof rootRouteImport
2359
+ }
2340
2360
  '/invite/$token': {
2341
2361
  id: '/invite/$token'
2342
2362
  path: '/invite/$token'
@@ -3590,6 +3610,7 @@ const rootRouteChildren: RootRouteChildren = {
3590
3610
  ApiHealthRoute: ApiHealthRoute,
3591
3611
  ApiSearchRoute: ApiSearchRoute,
3592
3612
  ApiStoryAiRoute: ApiStoryAiRoute,
3613
+ DevGalleryRoute: DevGalleryRoute,
3593
3614
  ServerAiStreamRoute: ServerAiStreamRoute,
3594
3615
  ServerWsRoute: ServerWsRoute,
3595
3616
  LangDocsSplatRouteRoute: LangDocsSplatRouteRoute,
@@ -3632,3 +3653,13 @@ const rootRouteChildren: RootRouteChildren = {
3632
3653
  export const routeTree = rootRouteImport
3633
3654
  ._addFileChildren(rootRouteChildren)
3634
3655
  ._addFileTypes<FileRouteTypes>()
3656
+
3657
+ import type { getRouter } from './router.tsx'
3658
+ import type { startInstance } from './start.ts'
3659
+ declare module '@tanstack/react-start' {
3660
+ interface Register {
3661
+ ssr: true
3662
+ router: Awaited<ReturnType<typeof getRouter>>
3663
+ config: Awaited<ReturnType<typeof startInstance.getOptions>>
3664
+ }
3665
+ }