@lvce-editor/shared-process 0.126.21 → 0.126.23

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": "@lvce-editor/shared-process",
3
- "version": "0.126.21",
3
+ "version": "0.126.23",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
3
3
 
4
4
  export const getBuiltinExtensionsPath = () => {
5
5
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
6
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '4891dd4', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '11e6912', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -28,7 +28,7 @@ export const getStaticContentSecurityPolicy = ({ allowExternalConnections = fals
28
28
  `media-src 'self' blob:`,
29
29
  `script-src 'self'`,
30
30
  `style-src 'self' 'unsafe-inline'`,
31
- `frame-src 'self' blob:`,
31
+ allowExternalConnections ? `frame-src 'self' blob: https: http://127.0.0.1:* http://localhost:*` : `frame-src 'self' blob:`,
32
32
  ])
33
33
 
34
34
  const readExtensionManifest = async (path) => {
@@ -59,6 +59,10 @@ export const getMimeType = (fileExtension) => {
59
59
  return MimeType.VideoWebm
60
60
  case '.webp':
61
61
  return MimeType.ImageWebp
62
+ case '.woff':
63
+ return MimeType.FontWoff
64
+ case '.woff2':
65
+ return MimeType.FontWoff2
62
66
  default:
63
67
  console.warn(`[shared-process] unsupported file extension: ${fileExtension}`)
64
68
  return ''
@@ -9,6 +9,8 @@ export const AudioXaac = 'audio/x-aac'
9
9
  export const AudioXMsWma = 'audio/x-ms-wma'
10
10
  export const AudioXWav = 'audio/x-wav'
11
11
  export const FontTtf = 'font/ttf'
12
+ export const FontWoff = 'font/woff'
13
+ export const FontWoff2 = 'font/woff2'
12
14
  export const ImageApng = 'image/apng'
13
15
  export const ImageAvif = 'image/avif'
14
16
  export const ImageBmp = 'image/bmp'
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.126.21'
59
+ export const version = '0.126.23'
60
60
 
61
- export const commit = '4891dd4'
61
+ export const commit = '11e6912'
62
62
 
63
- export const date = '2026-10-29T13:38:35.000Z'
63
+ export const date = '2026-10-29T21:55:40.000Z'
64
64
 
65
65
  export const getVersion = () => {
66
66
  return version
@@ -2,5 +2,5 @@ import { join } from 'node:path'
2
2
  import * as Root from '../Root/Root.js'
3
3
 
4
4
  export const getPreloadUrl = () => {
5
- return join(Root.root, 'static', '4891dd4', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '11e6912', 'packages', 'preload', 'dist', 'index.js')
6
6
  }