@gallop.software/studio 2.0.1 → 2.0.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/dist/handlers/index.js.map +1 -1
- package/dist/handlers/index.mjs.map +1 -1
- package/next.config.mjs +11 -5
- package/package.json +1 -1
- package/src/components/StudioContext.tsx +1 -1
- package/src/components/StudioFileGrid.tsx +1 -1
- package/src/components/StudioFileList.tsx +1 -1
- package/src/components/StudioUI.tsx +1 -1
- package/src/components/useStudioActions.tsx +2 -2
- package/src/handlers/files.ts +1 -1
- package/src/handlers/import.ts +1 -1
- package/src/handlers/list.ts +1 -1
- package/src/handlers/utils/meta.ts +1 -1
- package/src/handlers/utils/thumbnails.ts +1 -1
- package/src/hooks/useFileList.ts +1 -1
- package/src/lib/api.ts +1 -1
package/next.config.mjs
CHANGED
|
@@ -8,15 +8,21 @@ const nextConfig = {
|
|
|
8
8
|
emotion: true,
|
|
9
9
|
},
|
|
10
10
|
|
|
11
|
-
// Disable static generation for this dev tool
|
|
12
|
-
experimental: {
|
|
13
|
-
// Allow importing from src/ in app/
|
|
14
|
-
},
|
|
15
|
-
|
|
16
11
|
// Environment variables to expose to the client
|
|
17
12
|
env: {
|
|
18
13
|
NEXT_PUBLIC_STUDIO_WORKSPACE: process.env.STUDIO_WORKSPACE || process.cwd(),
|
|
19
14
|
},
|
|
15
|
+
|
|
16
|
+
// Transpile the src folder
|
|
17
|
+
transpilePackages: ['./src'],
|
|
18
|
+
|
|
19
|
+
// Enable SWC minification
|
|
20
|
+
swcMinify: true,
|
|
21
|
+
|
|
22
|
+
// Experimental settings for better TypeScript handling
|
|
23
|
+
experimental: {
|
|
24
|
+
// Improve TypeScript compilation
|
|
25
|
+
},
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
export default nextConfig
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { useState } from 'react'
|
|
|
5
5
|
import { css, keyframes } from '@emotion/react'
|
|
6
6
|
import { useFileList } from '../hooks/useFileList'
|
|
7
7
|
import { colors, fontSize } from './tokens'
|
|
8
|
-
import
|
|
8
|
+
import { FileItem } from '../types'
|
|
9
9
|
|
|
10
10
|
const spin = keyframes`
|
|
11
11
|
to { transform: rotate(360deg); }
|
|
@@ -5,7 +5,7 @@ import { useState } from 'react'
|
|
|
5
5
|
import { css, keyframes } from '@emotion/react'
|
|
6
6
|
import { useFileList } from '../hooks/useFileList'
|
|
7
7
|
import { colors, fontSize } from './tokens'
|
|
8
|
-
import
|
|
8
|
+
import { FileItem } from '../types'
|
|
9
9
|
|
|
10
10
|
const spin = keyframes`
|
|
11
11
|
to { transform: rotate(360deg); }
|
|
@@ -14,7 +14,7 @@ import { ConfirmModal, ProgressModal } from './StudioModal'
|
|
|
14
14
|
import { StudioFolderPicker } from './StudioFolderPicker'
|
|
15
15
|
import { useStudioActions } from './useStudioActions'
|
|
16
16
|
import { colors, fontSize, baseReset } from './tokens'
|
|
17
|
-
import
|
|
17
|
+
import { FileItem, LeanMeta } from '../types'
|
|
18
18
|
|
|
19
19
|
interface StudioUIProps {
|
|
20
20
|
onClose?: () => void
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { useState, useCallback, useRef } from 'react'
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { ActionState, ProgressState } from './StudioContext'
|
|
5
|
+
import { FileItem } from '../types'
|
|
6
6
|
|
|
7
7
|
const defaultActionState: ActionState = {
|
|
8
8
|
showProgress: false,
|
package/src/handlers/files.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from 'next/server'
|
|
|
2
2
|
import { promises as fs } from 'fs'
|
|
3
3
|
import path from 'path'
|
|
4
4
|
import sharp from 'sharp'
|
|
5
|
-
import
|
|
5
|
+
import { MetaEntry } from '../types'
|
|
6
6
|
import { getAllThumbnailPaths, isProcessed } from '../types'
|
|
7
7
|
import {
|
|
8
8
|
loadMeta,
|
package/src/handlers/import.ts
CHANGED
package/src/handlers/list.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from 'next/server'
|
|
2
2
|
import { promises as fs } from 'fs'
|
|
3
3
|
import path from 'path'
|
|
4
|
-
import
|
|
4
|
+
import { FileItem, MetaEntry } from '../types'
|
|
5
5
|
import { loadMeta, isImageFile, getCdnUrls, getFileEntries } from './utils'
|
|
6
6
|
import { getThumbnailPath, isProcessed } from '../types'
|
|
7
7
|
import { getPublicPath, getWorkspacePath } from '../config'
|
|
@@ -2,7 +2,7 @@ import { promises as fs } from 'fs'
|
|
|
2
2
|
import path from 'path'
|
|
3
3
|
import sharp from 'sharp'
|
|
4
4
|
import { encode } from 'blurhash'
|
|
5
|
-
import
|
|
5
|
+
import { MetaEntry, Dimensions } from '../../types'
|
|
6
6
|
import { getPublicPath } from '../../config'
|
|
7
7
|
|
|
8
8
|
export const FULL_MAX_WIDTH = 2560
|
package/src/hooks/useFileList.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState, useRef, useCallback } from 'react'
|
|
2
2
|
import { useStudio } from '../components/StudioContext'
|
|
3
3
|
import { studioApi } from '../lib/api'
|
|
4
|
-
import
|
|
4
|
+
import { FileItem } from '../types'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Shared hook for file list logic used by both Grid and List views
|
package/src/lib/api.ts
CHANGED